X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-closein.sh;h=a75929a20482a5bab82574d338c04e483a080870;hb=d66478297fa398b1358bbd8b56b1b34e7fef5415;hp=8623ead89771df23f60c8b30f23125d6e13369d4;hpb=5c323b505d3a819032d1d2ef825070faefc247e6;p=gnulib.git diff --git a/tests/test-closein.sh b/tests/test-closein.sh index 8623ead89..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} /dev/null && exit 1 +./test-closein${EXEEXT} consume close <&- 2>/dev/null && exit 1 # Cleanup rm -fr $tmpfiles