diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2008-09-06 19:20:32 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2008-09-06 19:38:34 +0200 |
commit | 20594c08f633aaee1df952242ea78553037758b9 (patch) | |
tree | c3aa9ca7e34401a717011279209386fe12c105ee /tests/specflg2.test | |
parent | c327d0d37c64dd126c71d3ffbf7eb8a3fe00c8c1 (diff) | |
download | automake-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/specflg2.test')
-rwxr-xr-x | tests/specflg2.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/specflg2.test b/tests/specflg2.test index 203912649..71208da98 100755 --- a/tests/specflg2.test +++ b/tests/specflg2.test @@ -16,7 +16,7 @@ # Test library-specific flags. -. ./defs || exit 1 +. ./defs || Exit 1 set -e @@ -45,14 +45,14 @@ grep 'required.*compile' stderr $AUTOMAKE # Look for $(COMPILE) -c in .c.o rule. -grep 'COMPILE. [^-]' Makefile.in && exit 1 +grep 'COMPILE. [^-]' Makefile.in && Exit 1 # Look for libfoo_a-foo.o. grep foo Makefile.in -grep '[^-]foo\.o' Makefile.in && exit 1 +grep '[^-]foo\.o' Makefile.in && Exit 1 # Look for libfoo_a-bar.o. grep bar Makefile.in -grep '[^-]bar\.o' Makefile.in && exit 1 +grep '[^-]bar\.o' Makefile.in && Exit 1 -exit 0 +Exit 0 |