From f2d7321b758061ff25c2de8616e4f320ea098462 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 11 Jun 2010 21:22:40 +0200 Subject: 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 --- tests/acloca18.test | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/acloca18.test') 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 -- cgit v1.2.1