changeset 13305:534ed67c4f08

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).
author Jim Meyering <meyering@redhat.com>
date Mon, 03 May 2010 18:30:38 +0200
parents e5593199cd7e
children 3b72fc82a799
files ChangeLog tests/test-xalloc-die.sh
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-xalloc-die.sh
+++ b/tests/test-xalloc-die.sh
@@ -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;;