* 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.
This commit is contained in:
Pavel Roskin 2000-10-30 03:24:44 +00:00
parent 80f8404bec
commit 03bbc0e52b
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2000-10-29 Pavel Roskin <proski@gnu.org>
* 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 <proski@gnu.org>
* autoconf.sh: When scanning for unexpanded macros match only

View File

@ -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

View File

@ -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