diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-08-24 22:59:13 +0200 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2010-08-24 23:12:25 +0200 |
commit | 9b7d0212e792d6cd5e5c447dc8696efd4da67a91 (patch) | |
tree | aeb386ccc039d012b785f6309fd3f0a8c522671c /tests/base.at | |
parent | d9847652188d94dd8205725400f43dbe0153b0b5 (diff) | |
download | autoconf-9b7d0212e792d6cd5e5c447dc8696efd4da67a91.tar.gz |
tests: fix AC_CACHE_CHECK to skip with bad shells.
* tests/base.at (AC_CACHE_CHECK): Skip test with malformed
config.site file if the shell does not report syntax errors
from a sourced file. Fixes test failure on AIX and FreeBSD.
Report from Rainer Tammer.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/base.at')
-rw-r--r-- | tests/base.at | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/base.at b/tests/base.at index 4ba01404..f21e7770 100644 --- a/tests/base.at +++ b/tests/base.at @@ -473,6 +473,12 @@ AT_CHECK([grep my_cv_shell_true_works sitecache], [], [ignore]) AT_CHECK_CONFIGURE([], [], [stdout]) AT_CHECK([grep 'whether true.*works.*cached' stdout], [], [ignore]) +dnl Until we can find a way to avoid catastrophic failure, +dnl skip the rest of this test on such shells. +echo 'if' > syntax +AT_CHECK([${CONFIG_SHELL-$SHELL} -c 'case `. ./syntax; echo $?` in + 0|"") exit 77;; esac'], [0], [ignore], [ignore]) + # Check that config cache scripts must be well-formed. AT_DATA([bad.site], [[fi |