* tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure

that the exit status of the tested program is
propagated as the exit status of the expression
fed to AT_CHECK.
This commit is contained in:
Peter Ekberg 2005-09-16 08:33:24 +00:00 committed by Peter Rosin
parent d398ce8acb
commit 38599480fc
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2005-09-16 Peter Ekberg <peda@lysator.liu.se>,
* tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
that the exit status of the tested program is
propagated as the exit status of the expression
fed to AT_CHECK.
2005-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/argz.c <HAVE_CONFIG_H>: Avoid redefinition warning.

View File

@ -57,10 +57,10 @@ test -f ./configure || exit 1
# LT_AT_EXEC_CHECK(EXECUTABLE, [STATUS = 0], [STDOUT], [STDERR])
# --------------------------------------------------------------
m4_define([LT_AT_EXEC_CHECK],
[AT_CHECK([if $1; then :;
[AT_CHECK([$1; lt_status=$?; if test $lt_status -eq 0; then :;
elif test "X$host" != "X$build" && \
{ test -x "$1" || test -x "$1"$EXEEXT; }
then (exit 77); fi],[$2],[$3],[$4])
then (exit 77); else (exit $lt_status); fi],[$2],[$3],[$4])
])