basvandijk / concurrent-extra

Extra concurrency primitives
Other
17 stars 5 forks source link

Test suite failure: GHC 7.6.3, Ubuntu 12.04 64-bit #3

Closed snoyberg closed 11 years ago

snoyberg commented 11 years ago

Discovered during Stackage build:

Unpacking to concurrent-extra-0.7.0.5/ Resolving dependencies... [1 of 1] Compiling Main ( Setup.hs, dist/setup/Main.o ) Linking ./dist/setup/setup ... Configuring concurrent-extra-0.7.0.5... Building concurrent-extra-0.7.0.5... Preprocessing test suite 'test-concurrent-extra' for concurrent-extra-0.7.0.5... [ 1 of 17] Compiling TestUtils ( TestUtils.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/TestUtils.o ) [ 2 of 17] Compiling Utils ( Utils.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Utils.o ) [ 3 of 17] Compiling Control.Concurrent.Broadcast ( Control/Concurrent/Broadcast.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Broadcast.o ) [ 4 of 17] Compiling Control.Concurrent.Broadcast.Test ( Control/Concurrent/Broadcast/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Broadcast/Test.o ) [ 5 of 17] Compiling Control.Concurrent.STM.Lock ( Control/Concurrent/STM/Lock.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/STM/Lock.o ) [ 6 of 17] Compiling Control.Concurrent.STM.Lock.Test ( Control/Concurrent/STM/Lock/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/STM/Lock/Test.o ) [ 7 of 17] Compiling Control.Concurrent.Lock ( Control/Concurrent/Lock.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Lock.o ) [ 8 of 17] Compiling Control.Concurrent.Lock.Test ( Control/Concurrent/Lock/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Lock/Test.o ) [ 9 of 17] Compiling Control.Concurrent.RLock ( Control/Concurrent/RLock.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/RLock.o ) [10 of 17] Compiling Control.Concurrent.ReadWriteLock ( Control/Concurrent/ReadWriteLock.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/ReadWriteLock.o ) [11 of 17] Compiling Control.Concurrent.ReadWriteLock.Test ( Control/Concurrent/ReadWriteLock/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/ReadWriteLock/Test.o ) [12 of 17] Compiling Control.Concurrent.ReadWriteVar ( Control/Concurrent/ReadWriteVar.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/ReadWriteVar.o ) [13 of 17] Compiling Control.Concurrent.ReadWriteVar.Test ( Control/Concurrent/ReadWriteVar/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/ReadWriteVar/Test.o ) [14 of 17] Compiling Control.Concurrent.Event ( Control/Concurrent/Event.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Event.o ) [15 of 17] Compiling Control.Concurrent.Event.Test ( Control/Concurrent/Event/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/Event/Test.o ) [16 of 17] Compiling Control.Concurrent.RLock.Test ( Control/Concurrent/RLock/Test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Control/Concurrent/RLock/Test.o ) [17 of 17] Compiling Main ( test.hs, dist/build/test-concurrent-extra/test-concurrent-extra-tmp/Main.o ) Linking dist/build/test-concurrent-extra/test-concurrent-extra ... Preprocessing library concurrent-extra-0.7.0.5... [1 of 8] Compiling Utils ( Utils.hs, dist/build/Utils.o ) [2 of 8] Compiling Control.Concurrent.STM.Lock ( Control/Concurrent/STM/Lock.hs, dist/build/Control/Concurrent/STM/Lock.o ) [3 of 8] Compiling Control.Concurrent.Broadcast ( Control/Concurrent/Broadcast.hs, dist/build/Control/Concurrent/Broadcast.o ) [4 of 8] Compiling Control.Concurrent.Event ( Control/Concurrent/Event.hs, dist/build/Control/Concurrent/Event.o ) [5 of 8] Compiling Control.Concurrent.Lock ( Control/Concurrent/Lock.hs, dist/build/Control/Concurrent/Lock.o ) [6 of 8] Compiling Control.Concurrent.RLock ( Control/Concurrent/RLock.hs, dist/build/Control/Concurrent/RLock.o ) [7 of 8] Compiling Control.Concurrent.ReadWriteLock ( Control/Concurrent/ReadWriteLock.hs, dist/build/Control/Concurrent/ReadWriteLock.o ) [8 of 8] Compiling Control.Concurrent.ReadWriteVar ( Control/Concurrent/ReadWriteVar.hs, dist/build/Control/Concurrent/ReadWriteVar.o ) In-place registering concurrent-extra-0.7.0.5... Running 1 test suites... Test suite test-concurrent-extra: RUNNING... Pessimistic locking: Event: set wait a: [OK] set wait b: [OK] set wait c: [OK] set wait d: [OK] conc set wait: [OK] multi wake: [OK] exception: [OK] wait timeout: [OK] wait blocks: [OK] Lock: acquire release: [OK] acquire acquire: [OK] new release: [OK] new unlocked: [OK] newAcquired locked: [OK] acq rel unlocked: [OK] conc release: [Failed]

wait: [OK]

STM.Lock: acquire release: [OK] acquire acquire: [OK] new release: [OK] new unlocked: [OK] newAcquired locked: [OK] acq rel unlocked: [OK] conc release: [OK] wait: [OK] RLock: recursive acquire: [OK] conc acquire: [OK] ReadWriteLock: test1: [OK] test2: [OK]

     Test Cases   Total       

Passed 28 28
Failed 1 1
Total 29 29
Test suite test-concurrent-extra: FAIL Test suite logged to: dist/test/concurrent-extra-0.7.0.5-test-concurrent-extra.log 0 of 1 test suites (0 of 1 test cases) passed.

basvandijk commented 11 years ago

Thanks for the report.

This probably went wrong because of some concurrency issue I don't understand. It always succeeds on my machine. I try to solve it by using the threaded runtime for the test suite and increasing the timeouts in the test case.