]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Redirect stderr into a pipe.
authorBruno Haible <bruno@clisp.org>
Fri, 26 Oct 2007 00:18:26 +0000 (00:18 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:22 +0000 (12:15 +0200)
gnulib-local/ChangeLog
gnulib-local/tests/test-term-ostream-xterm

index 916aa55df24c48e3c7889982601ab39effaf5048..d3f2b21a7d2a445a9cd4ed79abec87b23f52af69 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-25  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-term-ostream-xterm: Redirect stderr into a pipe.
+
 2007-10-21  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-term-ostream-xterm-solaris10.out: New file.
@@ -6,6 +10,7 @@
        * tests/test-term-ostream-xterm-irix65.out: New file.
        * tests/test-term-ostream-xterm-mingw.out: New file.
        * tests/test-term-ostream-xterm: Use them as possible test results.
+       * modules/term-ostream-tests (Files): Add the new files.
        * Makefile.am (EXTRA_DIST): Add the new files.
 
 2007-10-17  Bruno Haible  <bruno@clisp.org>
index 79e4f7f2d825704c97129f9101f8ae5c88fc2756..3b4c6911aaa43c3d905ded9ca5293cb666d1db8b 100755 (executable)
@@ -4,7 +4,9 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 tmpfiles="$tmpfiles out"
-TERM=xterm ./test-term-ostream > out
+# The redirection of stderr into a pipe avoids the output of padding bytes
+# (unnecessary NUL bytes after escape sequences) on some systems.
+(TERM=xterm ./test-term-ostream > out) 2>&1 | cat 1>&2
 
 # There are several variants of the "xterm" terminal description floating
 # around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm"