summaryrefslogtreecommitdiff
path: root/tests/unused.test
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-10-05 21:24:32 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-10-05 21:24:32 +0200
commit26f7cb7a3938bd296ab728e65678512d9e8dcb24 (patch)
treee72e21b8b68571162bfd9d0f11f5d48d5d00569e /tests/unused.test
parent2205fc6529f93237b1ea79d8d321a110e56d45ed (diff)
downloadautomake-26f7cb7a3938bd296ab728e65678512d9e8dcb24.tar.gz
Print captured output before failing.
* tests/acloca14.test, tests/acloca17.test, tests/acloca18.test, tests/aclocal.test, tests/acsilent.test, tests/alpha.test, tests/check4.test, tests/color.test, tests/fn99.test, tests/fn99subdir.test, tests/help.test, tests/init.test, tests/lisp8.test, tests/missing3.test, tests/pr220.test, tests/python11.test, tests/python4.test, tests/python5.test, tests/unused.test, tests/version8.test: When Exit is called after a command that has stdout or stderr redirected to a file for later inspection, output the file before failing the test. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/unused.test')
-rwxr-xr-xtests/unused.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unused.test b/tests/unused.test
index 45ca4854c..6d1f76487 100755
--- a/tests/unused.test
+++ b/tests/unused.test
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1998, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2002, 2003, 2008 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -29,5 +29,5 @@ AC_DEFUN([MACRO_1_2], echo 12)
AC_DEFUN([MACRO_1_2_3], echo 123)
END
-$ACLOCAL 2> output || Exit 1
-test -z "`cat output`"
+$ACLOCAL 2> stderr || { cat stderr >&2; Exit 1; }
+test -z "`cat stderr`"