sys_ioctl: Simplify.
[gnulib.git] / tests / test-nonblocking-pipe.sh
blobf86e134c5b0acf406edf80e45d98e53abde49616
1 #!/bin/sh
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.
6 # Test blocking write() with blocking read().
7 # Commented out because this test succeeds on all platforms anyway.
8 #${CHECKER} ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 0 || exit 1
10 # Test non-blocking write() with blocking read().
11 ${CHECKER} ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 1 || exit 1
13 # Test blocking write() with non-blocking read().
14 ${CHECKER} ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 2 || exit 1
16 # Test non-blocking write() with non-blocking read().
17 ${CHECKER} ./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 3 || exit 1