summaryrefslogtreecommitdiff
path: root/tests/dirlist.test
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-09-06 19:20:32 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-09-06 19:38:34 +0200
commit20594c08f633aaee1df952242ea78553037758b9 (patch)
treec3aa9ca7e34401a717011279209386fe12c105ee /tests/dirlist.test
parentc327d0d37c64dd126c71d3ffbf7eb8a3fe00c8c1 (diff)
downloadautomake-20594c08f633aaee1df952242ea78553037758b9.tar.gz
Use `Exit' instead of `exit' in test suite.
Cater to Bourne shells like Solaris sh that do not pass the `exit' argument as status to the cleanup trap. * Makefile.am (maintainer-check): Check that here-documents use only `END' or `EOF' as delimiter in the test suite. Check that, outside of here-documents, the tests do not use `exit' with an argument, but use `Exit' instead. * tests/defs.in (Exit): New function. Use it throughout, starting with the introduction of the exit trap. * tests/*.test: Use `Exit $arg' instead of `exit $arg' throughout, except inside created files. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/dirlist.test')
-rwxr-xr-xtests/dirlist.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dirlist.test b/tests/dirlist.test
index 98c26bb4a..5cd5f3a5c 100755
--- a/tests/dirlist.test
+++ b/tests/dirlist.test
@@ -17,7 +17,7 @@
# Check dirlist support.
# This test relies on m4/dirlist
-. ./defs || exit 1
+. ./defs || Exit 1
set -e
@@ -47,13 +47,13 @@ $AUTOCONF
# there should be no m4_include in aclocal.m4, even tho m4/dirlist contains
# `./dirlist-test' as a relative directory. Only -I directories are subject
# to file inclusion.
-grep m4_include aclocal.m4 && exit 1
+grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
# This bug can occur only when we do a VPATH build of Automake
# (because of the `-I' passed to aclocal in tests/defs/aclocal.in) but
# it's OK because VPATH builds are done by `make distcheck'.
-grep 'I should not be included' configure && exit 1
+grep 'I should not be included' configure && Exit 1
: