From 20594c08f633aaee1df952242ea78553037758b9 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 6 Sep 2008 19:20:32 +0200 Subject: 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 --- tests/subst3.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/subst3.test') diff --git a/tests/subst3.test b/tests/subst3.test index b0f5b4302..2f01908a0 100755 --- a/tests/subst3.test +++ b/tests/subst3.test @@ -18,7 +18,7 @@ # Test installation with substitutions. This test is based on nobase.test. required='gcc' -. ./defs || exit 1 +. ./defs || Exit 1 set -e -- cgit v1.2.1