From: Eric Blake Date: Mon, 22 Oct 2007 15:39:27 +0000 (-0600) Subject: * tests/test-yesno.sh: Silence stderr during test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=356aef655f606d928d9a2eef681527182de47235;p=pspp * tests/test-yesno.sh: Silence stderr during test. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 4dfb9414c9..aaf49647cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-10-22 Eric Blake + + * tests/test-yesno.sh: Silence stderr during test. + 2007-10-22 Simon Josefsson * modules/crypto/gc-camellia: New file. diff --git a/tests/test-yesno.sh b/tests/test-yesno.sh index fdf9948006..5de918c6f0 100755 --- a/tests/test-yesno.sh +++ b/tests/test-yesno.sh @@ -4,7 +4,7 @@ tmpfiles= trap 'rm -fr $tmpfiles' 1 2 3 15 p=t-yesno- -tmpfiles="${p}in.tmp ${p}xout.tmp ${p}out.tmp" +tmpfiles="${p}in.tmp ${p}xout.tmp ${p}out.tmp ${p}err.tmp" # For now, only test with C locale LC_ALL=C @@ -49,8 +49,9 @@ EOF cmp ${p}xout.tmp ${p}out.tmp || exit 1 # Test for behavior when stdin is closed -./test-yesno${EXEEXT} 0 <&- > ${p}out.tmp && exit 1 +./test-yesno${EXEEXT} 0 <&- > ${p}out.tmp 2> ${p}err.tmp && exit 1 cmp ${p}xout.tmp ${p}out.tmp || exit 1 +test -s ${p}err.tmp || exit 1 # Cleanup rm -fr $tmpfiles