test-closein: silence test under Darwin
authorEric Blake <ebb9@byu.net>
Tue, 3 Mar 2009 13:15:08 +0000 (06:15 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 3 Mar 2009 13:15:08 +0000 (06:15 -0700)
* tests/test-closein.sh: Ignore stderr from cat, since we don't
care if it dies from EPIPE or EBADF.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-closein.sh

index d109e90ff9eb0987eeb7d4fb15ededb866e0c231..f4841afe29f036fc15ea94b17451a1344d2387db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-03  Eric Blake  <ebb9@byu.net>
+
+       test-closein: silence test under Darwin
+       * tests/test-closein.sh: Ignore stderr from cat, since we don't
+       care if it dies from EPIPE or EBADF.
+
 2009-03-03  Bruno Haible  <bruno@clisp.org>
 
        * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
index 4f5751176e0df756c519dfc72e0bd38f1aef1dcb..a75929a20482a5bab82574d338c04e483a080870 100755 (executable)
@@ -16,10 +16,10 @@ cmp ${p}out1.tmp ${p}in.tmp || exit 1
 (./test-closein${EXEEXT} consume; cat) < ${p}in.tmp > ${p}out2.tmp || exit 1
 cmp ${p}out2.tmp ${p}xout.tmp || exit 1
 
-# Test for lack of error on pipe
-cat ${p}in.tmp | ./test-closein${EXEEXT} || exit 1
+# Test for lack of error on pipe.  Ignore any EPIPE failures from cat.
+cat ${p}in.tmp 2>/dev/null | ./test-closein${EXEEXT} || exit 1
 
-cat ${p}in.tmp | ./test-closein${EXEEXT} consume || exit 1
+cat ${p}in.tmp 2>/dev/null | ./test-closein${EXEEXT} consume || exit 1
 
 # Test for lack of error when nothing is read
 ./test-closein${EXEEXT} </dev/null || exit 1