Skip to content

Tests fail on x86_64-darwin #28

@sternenseemann

Description

@sternenseemann

Tests succeed for aarch64-linux and x86_64-linux with TZDIR set to the same package output as in this build:

Preprocessing test suite 'tests' for tz-0.1.3.5..
Building test suite 'tests' for tz-0.1.3.5..
[1 of 1] Compiling Main             ( tests/testTZ.hs, dist/build/tests/tests-tmp/Main.o, dist/build/tests/tests-tmp/Main.dyn_o )
Linking dist/build/tests/tests ...
Preprocessing test suite 'th-test' for tz-0.1.3.5..
Building test suite 'th-test' for tz-0.1.3.5..
[1 of 1] Compiling Main             ( tests/testTH.hs, dist/build/th-test/th-test-tmp/Main.o, dist/build/th-test/th-test-tmp/Main.dyn_o )
Linking dist/build/th-test/th-test ...
Preprocessing test suite 'test-all' for tz-0.1.3.5..
Building test suite 'test-all' for tz-0.1.3.5..
[1 of 1] Compiling Main             ( tests/testAll.hs, dist/build/test-all/test-all-tmp/Main.o, dist/build/test-all/test-all-tmp/Main.dyn_o )
Linking dist/build/test-all/test-all ...
Preprocessing test suite 'testsSys' for tz-0.1.3.5..
Building test suite 'testsSys' for tz-0.1.3.5..
[1 of 1] Compiling Main             ( tests/testTZSys.hs, dist/build/testsSys/testsSys-tmp/Main.o, dist/build/testsSys/testsSys-tmp/Main.dyn_o )
ld: warning: /nix/store/3833z5d0n3b57fhyiswa9zqjfig0v1mn-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/3833z5d0n3b57fhyiswa9zqjfig0v1mn-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
Linking dist/build/testsSys/testsSys ...
running tests
Running 4 test suites...
Test suite tests: RUNNING...
Test suite tests: PASS
Test suite logged to: dist/test/tz-0.1.3.5-tests.log
Test suite th-test: RUNNING...
Test suite th-test: PASS
Test suite logged to: dist/test/tz-0.1.3.5-th-test.log
Test suite test-all: RUNNING...
Test suite test-all: PASS
Test suite logged to: dist/test/tz-0.1.3.5-test-all.log
Test suite testsSys: RUNNING...
Main:
  Budapest correct TimeZone: [Failed]
*** Failed! Exception: 'HUnitFailure (Just (SrcLoc {srcLocPackage = "main", srcLocModule = "Main", srcLocFile = "tests/testTZSys.hs", srcLocStartLine = 65, srcLocStartCol = 13, srcLocEndLine = 65, srcLocEndCol = 48})) (ExpectedButGot Nothing "CEST" "CET")' (after 88 tests):
(used seed -5926020771038564925)
  New York correct TimeZone: [OK, passed 100 tests]
  Los Angeles correct TimeZone: [OK, passed 100 tests]
  Shanghai correct TimeZone: [Failed]
*** Failed! Exception: 'HUnitFailure (Just (SrcLoc {srcLocPackage = "main", srcLocModule = "Main", srcLocFile = "tests/testTZSys.hs", srcLocStartLine = 65, srcLocStartCol = 13, srcLocEndLine = 65, srcLocEndCol = 48})) (ExpectedButGot Nothing "CST" "CDT")' (after 35 tests):
(used seed 3689723971695505946)
  Jerusalem correct TimeZone: [OK, passed 100 tests]
  Antarctica Palmer correct TimeZone: [OK, passed 100 tests]
  Melbourne correct TimeZone: [OK, passed 100 tests]
  Budapest correct LocalTime: [Failed]
*** Failed! Exception: 'HUnitFailure (Just (SrcLoc {srcLocPackage = "main", srcLocModule = "Main", srcLocFile = "tests/testTZSys.hs", srcLocStartLine = 92, srcLocStartCol = 13, srcLocEndLine = 92, srcLocEndCol = 76})) (ExpectedButGot Nothing "1920-09-20 01:59:59" "1920-09-20 02:59:59")' (after 94 tests and 11 shrinks):
-1555196401
(used seed -8399082595569329368)
  New York correct LocalTime: [OK, passed 100 tests]
  Los Angeles correct LocalTime: [OK, passed 100 tests]
  Shanghai correct LocalTime: [OK, passed 100 tests]
  Jerusalem correct LocalTime: [Failed]
*** Failed! Exception: 'HUnitFailure (Just (SrcLoc {srcLocPackage = "main", srcLocModule = "Main", srcLocFile = "tests/testTZSys.hs", srcLocStartLine = 92, srcLocStartCol = 13, srcLocEndLine = 92, srcLocEndCol = 76})) (ExpectedButGot Nothing "1984-05-06 00:00:00" "1984-05-06 01:00:00")' (after 59 tests and 15 shrinks):
452642400
(used seed -3267593269727769404)
  Antarctica Palmer correct LocalTime: [OK, passed 100 tests]
  Melbourne correct LocalTime: [OK, passed 100 tests]

         Properties   Total       
 Passed  10           10          
 Failed  4            4           
 Total   14           14          
Test suite testsSys: FAIL
Test suite logged to: dist/test/tz-0.1.3.5-testsSys.log
3 of 4 test suites (3 of 4 test cases) passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions