X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-closein.sh;h=a75929a20482a5bab82574d338c04e483a080870;hb=6184bd1482b08fb6e3076931b73cbf09639509bc;hp=4f5751176e0df756c519dfc72e0bd38f1aef1dcb;hpb=49adfaf5d36d94624790dc9754a2966a8102d2b3;p=gnulib.git 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}