mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-23 14:09:51 +08:00
* 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:
parent
80f8404bec
commit
03bbc0e52b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user