view tests/test-nonblocking-pipe.sh @ 17364:7524d97ae56f

stdalign: port to stricter ISO C11 ISO C11 says that _Alignof's operand must be a parenthesized type. Problem reported by Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>. * doc/posix-headers/stdalign.texi (stdalign.h): Document this. * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 29 Mar 2013 19:47:13 -0700
parents e34e9b75f470
children 8c1a17df67e0
line wrap: on
line source

#!/bin/sh

# Note: This test fails on Cygwin 1.5.x, because the non-blocking flag has
# apparently no effect on STDOUT_FILENO. It is fixed in Cygwin 1.7.

# Test blocking write() with blocking read().
# Commented out because this test succeeds on all platforms anyway.
#./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 0 || exit 1

# Test non-blocking write() with blocking read().
./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 1 || exit 1

# Test blocking write() with non-blocking read().
./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 2 || exit 1

# Test non-blocking write() with non-blocking read().
./test-nonblocking-pipe-main${EXEEXT} ./test-nonblocking-pipe-child${EXEEXT} 3 || exit 1