* tests/test-yesno.sh: Silence stderr during test.
authorEric Blake <ebb9@byu.net>
Mon, 22 Oct 2007 15:39:27 +0000 (09:39 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 22 Oct 2007 15:39:27 +0000 (09:39 -0600)
Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-yesno.sh

index 4dfb9414c9e0dfa73fbdfac761acca410d9e337c..aaf49647cb65b3358ca70bff77b8bc669f98e9f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-22  Eric Blake  <ebb9@byu.net>
+
+       * tests/test-yesno.sh: Silence stderr during test.
+
 2007-10-22  Simon Josefsson  <simon@josefsson.org>
 
        * modules/crypto/gc-camellia: New file.
index fdf99480064f1b4a92174756c8e5a1e74675644d..5de918c6f0055d8781befff872bf5d7dd2d62d30 100755 (executable)
@@ -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