From: Ralf Wildenhues Date: Tue, 12 Oct 2010 18:29:58 +0000 (+0200) Subject: tests: avoid AC_CACHE_CHECK test failure with dash. X-Git-Tag: v2.68b~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6b151d0e24f9670695ec6f3ef13f838ef9d05fc;p=thirdparty%2Fautoconf.git tests: avoid AC_CACHE_CHECK test failure with dash. * tests/base.at (AC_CACHE_CHECK): Normalize configure exit status in presence of syntax error in sourced site file. Do not error out if configure is aborted at this point. Fixes testsuite failure with dash 0.5.5.1. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 609846af..9217438c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-10-12 Ralf Wildenhues + + tests: avoid AC_CACHE_CHECK test failure with dash. + * tests/base.at (AC_CACHE_CHECK): Normalize configure exit + status in presence of syntax error in sourced site file. + Do not error out if configure is aborted at this point. + Fixes testsuite failure with dash 0.5.5.1. + 2010-10-08 Eric Blake AS_LITERAL_IF: Treat raw = as literal again. diff --git a/tests/base.at b/tests/base.at index cf120997..0973fc4b 100644 --- a/tests/base.at +++ b/tests/base.at @@ -493,8 +493,9 @@ AT_DATA([bad.site], [[fi ]]) CONFIG_SITE=$PWD/bad.site -AT_CHECK_CONFIGURE([], [1], [ignore], [stderr]) -AT_CHECK([grep 'failed to load site script' stderr], [], [ignore]) +AT_CHECK_CONFIGURE([ || exit 1], [1], [stdout], [stderr]) +AT_CHECK([grep 'failed to load site script' stderr], [], [ignore], [ignore], + [AT_CHECK([grep 'whether true' stdout], [1])]) # However, a missing file is ignored. CONFIG_SITE=./no-such-file