summaryrefslogtreecommitdiff
path: root/tests/discover.test
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-05-27 07:49:04 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-06-06 14:21:10 +0200
commit949d1f0e14c06caa70c5b2b1b791e24c931cf56d (patch)
tree5aae92768944c9e1dd20bdd99d1b57767464399f /tests/discover.test
parent71288283bca6ba61325feb86badbc7719bc90234 (diff)
downloadautomake-949d1f0e14c06caa70c5b2b1b791e24c931cf56d.tar.gz
Enable `errexit' shell flag in some test scripts.
* tests/dash.test: Enable `errexit' shell flag, and related changes. * tests/defun.test: Likewise. * tests/defun2.test: Likewise. * tests/dejagnu.test: Likewise. * tests/double.test: Likewise. * tests/distcom2.test: Likewise. * tests/empty2.test: Likewise. * tests/empty3.test: Likewise. * tests/empty4.test: Likewise. * tests/exdir.test: Likewise. * tests/ext.test: Likewise. * tests/extra.test: Likewise. * tests/extra2.test: Likewise. * tests/extra3.test: Likewise. * tests/extra4.test: Likewise. * tests/flibs.test: Likewise. * tests/fnoc.test: Likewise. * tests/fo.test: Likewise. * tests/instexec.test: Likewise. * tests/ltdeps.test: Likewise. * tests/nodep.test: Likewise. * tests/nodepcomp.test: Likewise. * tests/f90only.test: Likewise, and remove botched/obsoleted comments and unecessary commands. * tests/fonly.test: Likewise, and removed botched/obsolted comments and unecessary commands. * tests/discover.test: Likewise, and made stricter. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/discover.test')
-rwxr-xr-xtests/discover.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/discover.test b/tests/discover.test
index 36293f7a2..0e4faa3b1 100755
--- a/tests/discover.test
+++ b/tests/discover.test
@@ -1,5 +1,6 @@
#! /bin/sh
-# Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 2000, 2001, 2002, 2010 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
@@ -33,6 +34,9 @@ END
: > fsusage.c
-$ACLOCAL || Exit 1
-$AUTOMAKE 2>&1 | $FGREP fsusage.c || Exit 1
+$ACLOCAL
+AUTOMAKE_fails
+
+grep 'automatically discovered.*fsusage\.c.*explicitly mentioned' stderr
+
Exit 0