summaryrefslogtreecommitdiff
path: root/tests/postproc.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/postproc.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/postproc.test')
-rwxr-xr-xtests/postproc.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/postproc.test b/tests/postproc.test
index 0a06acaf5..254c93649 100755
--- a/tests/postproc.test
+++ b/tests/postproc.test
@@ -17,7 +17,7 @@
# Check to make sure we recognize a Makefile.in, even if post-processed
# and renamed.
-. ./defs || exit 1
+. ./defs || Exit 1
cat >configure.in <<'END'
AC_INIT([mumble], [0.1])
@@ -32,16 +32,16 @@ bin_PROGRAMS = fred
fred_SOURCES = fred.c
END
-$ACLOCAL || exit 1
-$AUTOCONF || exit 1
-$AUTOMAKE -- myMakefile || exit 1
+$ACLOCAL || Exit 1
+$AUTOCONF || Exit 1
+$AUTOMAKE -- myMakefile || Exit 1
mv myMakefile.in myMakefile.old
echo '# Post-processed by post-processor 3.14.' > myMakefile.in
cat myMakefile.old >> myMakefile.in
-./configure || exit 1
+./configure || Exit 1
-test -f .deps/fred.Po || test -f _deps/fred.Po || exit 1
+test -f .deps/fred.Po || test -f _deps/fred.Po || Exit 1
: