]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: fix AC_CACHE_CHECK to skip with bad shells.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 24 Aug 2010 20:59:13 +0000 (22:59 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 24 Aug 2010 21:12:25 +0000 (23:12 +0200)
* 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>
ChangeLog
tests/base.at

index 316b96352ac3e34661b2b9b87caae3247fd2766e..c7ef728e68a07dfde50b31ba5cb546e7c5340e40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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.
+
 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
index 4ba01404d6e3b2fbeec1164764f48ce0c5691413..f21e777048dbbce1b551666f4f4f332f0951eff9 100644 (file)
@@ -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