From: Eric Blake Date: Tue, 3 Mar 2009 13:15:08 +0000 (-0700) Subject: test-closein: silence test under Darwin X-Git-Tag: v0.1~6230 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=5416f5b033beaf4254aea4c2a38d28f0ab6f2e6d;p=gnulib.git 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. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index d109e90ff..f4841afe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-03-03 Eric Blake + + 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 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi diff --git a/tests/test-closein.sh b/tests/test-closein.sh index 4f5751176..a75929a20 100755 --- a/tests/test-closein.sh +++ b/tests/test-closein.sh @@ -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}