test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
authorJim Meyering <meyering@redhat.com>
Mon, 3 May 2010 16:30:38 +0000 (18:30 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 3 May 2010 16:30:38 +0000 (18:30 +0200)
* tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
"> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
line in the "err2" output file when running "make check" in verbose
mode (i.e., with set -x enabled).

ChangeLog
tests/test-xalloc-die.sh

index 4378ddb..0ec11b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-05-03  Jim Meyering  <meyering@redhat.com>
+
+       test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
+       * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
+       "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
+       on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
+       line in the "err2" output file when running "make check" in verbose
+       mode (i.e., with set -x enabled).
+
 2010-05-03  Bruno Haible  <bruno@clisp.org>
 
        wctob: Fix for weird platforms.
index 80d6208..375cd14 100755 (executable)
@@ -18,7 +18,7 @@
 
 . "${srcdir=.}/init.sh"; path_prepend_ .
 
-test-xalloc-die${EXEEXT} 2> err > out
+test-xalloc-die${EXEEXT} > out 2> err
 case $? in
   1) ;;
   *) Exit 1;;