summaryrefslogtreecommitdiff
path: root/tests/acloca18.test
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2010-06-11 21:22:40 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-06-12 13:01:14 +0200
commitf2d7321b758061ff25c2de8616e4f320ea098462 (patch)
treeadf18150efca3cef9c7a59a9b8ff29510889d456 /tests/acloca18.test
parentc1f6cdbdb3ef89d2f6a23e5b9d87baeba73b2735 (diff)
downloadautomake-f2d7321b758061ff25c2de8616e4f320ea098462.tar.gz
Testsuite: ensure verbose printing of captured stderr.
* tests/acloca18.test: Print captured stderr before either failing or grepping it. Be sure to send captured stderr to stderr, not to stdout. * tests/ansi3b.test: Likewise. * tests/cond39.test: Likewise. * tests/configure.test: Likewise. * tests/missing3.test: Likewise. * tests/missing6.test: Likewise. * tests/output-order.test: Likewise. * tests/pr300-ltlib.test: Likewise. * tests/python6.test: Likewise. * tests/python7.test: Likewise. * tests/python8.test: Likewise. * tests/python9.test: Likewise. * tests/subobj.test: Likewise. * tests/vars3.test: Likewise. * tests/missing4.test: Likewise, and fix a call to grep not to use the `-c' flag. * tests/ansi3.test: Likewise, and rely on the `configure.in' stub created by `./defs', rather than writing one from scratch. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/acloca18.test')
-rwxr-xr-xtests/acloca18.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/acloca18.test b/tests/acloca18.test
index 276e5ba7b..c38fac485 100755
--- a/tests/acloca18.test
+++ b/tests/acloca18.test
@@ -106,9 +106,13 @@ AC_DEFUN([AM_MACRO1], [echo macro1d >> foo])
AC_DEFUN([AM_MACRO2], [echo macro2d >> foo])
EOF
rm -f foo
-$ACLOCAL --diff=diff >output 2>stderr
-cat stderr
-cat output
-grep '#serial 456' output
+$ACLOCAL --diff=diff >stdout 2>stderr || {
+ cat stderr >&2
+ cat stdout
+ Exit 1
+}
+cat stderr >&2
+cat stdout
+grep '#serial 456' stdout
test ! -f 4/m1.m4
grep 'installing.*4/m1.m4' stderr