Add a test for I/O managers
It tries to cover the cases of multiple threads waiting on the same fd for reading and multiple threads waiting for writing, including wait cancellation by async exceptions. It should work for any I/O manager, in-RTS or in-Haskell. Unfortunately it will not currently work for Windows because it relies on anonymous unix sockets. It could in principle be ported to use Windows named pipes.
Showing
- testsuite/tests/rts/IOManager.hsc 1089 additions, 0 deletionstestsuite/tests/rts/IOManager.hsc
- testsuite/tests/rts/IOManager.stdout 21 additions, 0 deletionstestsuite/tests/rts/IOManager.stdout
- testsuite/tests/rts/Makefile 5 additions, 0 deletionstestsuite/tests/rts/Makefile
- testsuite/tests/rts/all.T 4 additions, 0 deletionstestsuite/tests/rts/all.T
Loading
Please register or sign in to comment