summaryrefslogtreecommitdiffstats
path: root/gnulib-local/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-26 00:18:26 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:22 +0200
commit3193074f30ee1ef7906cdd7b69c968777d3b84c4 (patch)
tree06ea67022b87277c4e0f651b49bc3dac7e3cddbd /gnulib-local/tests
parentc8f2ea6921a59b4ec0882773039f71f8b970bc9e (diff)
downloadexternal_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.zip
external_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.tar.gz
external_gettext-3193074f30ee1ef7906cdd7b69c968777d3b84c4.tar.bz2
Redirect stderr into a pipe.
Diffstat (limited to 'gnulib-local/tests')
-rwxr-xr-xgnulib-local/tests/test-term-ostream-xterm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnulib-local/tests/test-term-ostream-xterm b/gnulib-local/tests/test-term-ostream-xterm
index 79e4f7f..3b4c691 100755
--- a/gnulib-local/tests/test-term-ostream-xterm
+++ b/gnulib-local/tests/test-term-ostream-xterm
@@ -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"