From 356aef655f606d928d9a2eef681527182de47235 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 22 Oct 2007 09:39:27 -0600 Subject: [PATCH] * tests/test-yesno.sh: Silence stderr during test. Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ tests/test-yesno.sh | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.30.2