The build succeeded. 1 test suites succeeded, 0 failed.
Build log
> /tmp/stackage-build2453$ stack unpack SafeSemaphore-0.10.1@sha256:1b168ec8de4b3958df15b33ba9ab60d8a651d9dd4ea36891d4c31ae81e7ec1cc
Unpacked SafeSemaphore-0.10.1 to /tmp/stackage-build2453/SafeSemaphore-0.10.1/
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
[1 of 1] Compiling Main ( Setup.hs, Setup.o )
Linking Setup ...
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup configure --package-db=clear --package-db=global --package-db=/home/circleci/project/builds/nightly/pkgdb --libdir=/home/circleci/project/builds/nightly/lib --bindir=/home/circleci/project/builds/nightly/bin --datadir=/home/circleci/project/builds/nightly/share --libexecdir=/home/circleci/project/builds/nightly/libexec --sysconfdir=/home/circleci/project/builds/nightly/etc --docdir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1 --htmldir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1 --haddockdir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1
Configuring SafeSemaphore-0.10.1...
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup build
Preprocessing library for SafeSemaphore-0.10.1..
Building library for SafeSemaphore-0.10.1..
[1 of 8] Compiling Control.Concurrent.FairRWLock ( src/Control/Concurrent/FairRWLock.hs, dist/build/Control/Concurrent/FairRWLock.o )
[2 of 8] Compiling Control.Concurrent.MSampleVar ( src/Control/Concurrent/MSampleVar.hs, dist/build/Control/Concurrent/MSampleVar.o )
[3 of 8] Compiling Control.Concurrent.MSem ( src/Control/Concurrent/MSem.lhs, dist/build/Control/Concurrent/MSem.o )
[4 of 8] Compiling Control.Concurrent.MSemN ( src/Control/Concurrent/MSemN.lhs, dist/build/Control/Concurrent/MSemN.o )
[5 of 8] Compiling Control.Concurrent.MSemN2 ( src/Control/Concurrent/MSemN2.hs, dist/build/Control/Concurrent/MSemN2.o )
[6 of 8] Compiling Control.Concurrent.STM.SSemInternals ( src/Control/Concurrent/STM/SSemInternals.hs, dist/build/Control/Concurrent/STM/SSemInternals.o )
[7 of 8] Compiling Control.Concurrent.STM.SSem ( src/Control/Concurrent/STM/SSem.hs, dist/build/Control/Concurrent/STM/SSem.o )
[8 of 8] Compiling Control.Concurrent.SSem ( src/Control/Concurrent/SSem.hs, dist/build/Control/Concurrent/SSem.o )
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup copy
Installing library in /home/circleci/project/builds/nightly/lib/x86_64-linux-ghc-8.7.20181120/SafeSemaphore-0.10.1-CIc1aezvP1tCrsx0L4O3qy
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup register
Registering library for SafeSemaphore-0.10.1..
Test log
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup configure --enable-tests --package-db=clear --package-db=global --package-db=/home/circleci/project/builds/nightly/pkgdb --libdir=/home/circleci/project/builds/nightly/lib --bindir=/home/circleci/project/builds/nightly/bin --datadir=/home/circleci/project/builds/nightly/share --libexecdir=/home/circleci/project/builds/nightly/libexec --sysconfdir=/home/circleci/project/builds/nightly/etc --docdir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1 --htmldir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1 --haddockdir=/home/circleci/project/builds/nightly/doc/SafeSemaphore-0.10.1
Configuring SafeSemaphore-0.10.1...
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ghc -clear-package-db -global-package-db -package-db=/home/circleci/project/builds/nightly/pkgdb Setup
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ ./Setup build
Preprocessing library for SafeSemaphore-0.10.1..
Building library for SafeSemaphore-0.10.1..
[1 of 8] Compiling Control.Concurrent.FairRWLock ( src/Control/Concurrent/FairRWLock.hs, dist/build/Control/Concurrent/FairRWLock.o )
[2 of 8] Compiling Control.Concurrent.MSampleVar ( src/Control/Concurrent/MSampleVar.hs, dist/build/Control/Concurrent/MSampleVar.o )
[3 of 8] Compiling Control.Concurrent.MSem ( src/Control/Concurrent/MSem.lhs, dist/build/Control/Concurrent/MSem.o )
[4 of 8] Compiling Control.Concurrent.MSemN ( src/Control/Concurrent/MSemN.lhs, dist/build/Control/Concurrent/MSemN.o )
[5 of 8] Compiling Control.Concurrent.MSemN2 ( src/Control/Concurrent/MSemN2.hs, dist/build/Control/Concurrent/MSemN2.o )
[6 of 8] Compiling Control.Concurrent.STM.SSemInternals ( src/Control/Concurrent/STM/SSemInternals.hs, dist/build/Control/Concurrent/STM/SSemInternals.o )
[7 of 8] Compiling Control.Concurrent.STM.SSem ( src/Control/Concurrent/STM/SSem.hs, dist/build/Control/Concurrent/STM/SSem.o )
[8 of 8] Compiling Control.Concurrent.SSem ( src/Control/Concurrent/SSem.hs, dist/build/Control/Concurrent/SSem.o )
Preprocessing test suite 'TestSafeSemaphore' for SafeSemaphore-0.10.1..
Building test suite 'TestSafeSemaphore' for SafeSemaphore-0.10.1..
[1 of 1] Compiling Main ( tests/TestKillSem.hs, dist/build/TestSafeSemaphore/TestSafeSemaphore-tmp/Main.o )
Linking dist/build/TestSafeSemaphore/TestSafeSemaphore ...
> /tmp/stackage-build2453/SafeSemaphore-0.10.1$ dist/build/TestSafeSemaphore/TestSafeSemaphore
Cases: 3 Tried: 0 Errors: 0 Failures: 0
### Failure in: 0
tests/TestKillSem.hs:235
Cases: 3 Tried: 1 Errors: 0 Failures: 1
Cases: 3 Tried: 2 Errors: 0 Failures: 1
Cases: 3 Tried: 3 Errors: 0 Failures: 1
Cases: 5 Tried: 0 Errors: 0 Failures: 0
Cases: 5 Tried: 1 Errors: 0 Failures: 0
Cases: 5 Tried: 2 Errors: 0 Failures: 0
Cases: 5 Tried: 3 Errors: 0 Failures: 0
Cases: 5 Tried: 4 Errors: 0 Failures: 0
Cases: 5 Tried: 5 Errors: 0 Failures: 0
Cannot test SampleVar on GHC 7.8 because it was removed
Test QSem
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done (QUANTITY CONSERVED) PASS
0: stop thread 2
0: stop thread 3
True
Test QSemN
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done (QUANTITY CONSERVED) PASS
0: stop thread 2
0: stop thread 3
True
Expected 3 Failures for above code
Test MSampleVar
0: forkIO read thread 1
0: stop thread 1
1: read interrupted
0: write sv #1
0: write sv #2 with timeout
0: write sv #2 returned, PASS
Test MSem
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done (QUANTITY CONSERVED) PASS
0: stop thread 2
0: stop thread 3
True
Test MSemN
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done (QUANTITY CONSERVED) PASS
0: stop thread 2
0: stop thread 3
True
Test MSemN2
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done (QUANTITY CONSERVED) PASS
0: stop thread 2
0: stop thread 3
True
Test SSem
0: forkIO wait thread 1
0: stop thread 1
1: wait interrupted
0: signal q #1
0: forkIO wait thread 2
2: wait done
0: forkIO wait thread 3
0: signal q #2
3: wait done
0: stop thread 2
0: stop thread 3
Final Value 0