From: Pavel Roskin Date: Mon, 30 Oct 2000 03:24:44 +0000 (+0000) Subject: * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status X-Git-Tag: autoconf-2.50~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03bbc0e52bd77280b7a34dd823a58595325be71e;p=thirdparty%2Fautoconf.git * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status is different from what we got. Don't preserve exit status other than 77. --- diff --git a/ChangeLog b/ChangeLog index b06b6dc82..165274f9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-10-29 Pavel Roskin + + * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status + is different from what we got. Don't preserve exit status other + than 77. + 2000-10-29 Pavel Roskin * autoconf.sh: When scanning for unexpanded macros match only diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 941b7e804..0d1cc0a4f 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -372,10 +372,12 @@ $1 ifelse([$2], [], [], [at_status=$? if test $at_status != $2; then + $at_verbose && echo "Exit code was $at_status, expected $2" >&6 dnl Maybe there was an important message to read before it died. $at_verbose && $at_check_stds && cat stderr >&6 -dnl Exit with the same code, at least to preserve 77. - exit $at_status +dnl Preserve exit code 77. + test $at_status = 77 && exit 77 + exit 1 fi ])dnl $at_traceoff diff --git a/tests/atgeneral.m4 b/tests/atgeneral.m4 index 941b7e804..0d1cc0a4f 100644 --- a/tests/atgeneral.m4 +++ b/tests/atgeneral.m4 @@ -372,10 +372,12 @@ $1 ifelse([$2], [], [], [at_status=$? if test $at_status != $2; then + $at_verbose && echo "Exit code was $at_status, expected $2" >&6 dnl Maybe there was an important message to read before it died. $at_verbose && $at_check_stds && cat stderr >&6 -dnl Exit with the same code, at least to preserve 77. - exit $at_status +dnl Preserve exit code 77. + test $at_status = 77 && exit 77 + exit 1 fi ])dnl $at_traceoff