pty: Activate the signature wrapper of forkpty.
[gnulib.git] / tests / test-nonblocking-pipe.sh
1 #!/bin/sh
2
3 # Note: This test fails on Cygwin 1.5.x, because the non-blocking flag has
4 # apparently no effect on STDOUT_FILENO. It is fixed in Cygwin 1.7.
5
6 # Test blocking write() with blocking read().
7 # Commented out because this test succeeds on all platforms anyway.
8 #./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 0 || exit 1
9
10 # Test non-blocking write() with blocking read().
11 ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 1 || exit 1
12
13 # Test blocking write() with non-blocking read().
14 ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 2 || exit 1
15
16 # Test non-blocking write() with non-blocking read().
17 ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 3 || exit 1