From: Peter Ekberg Date: Fri, 16 Sep 2005 08:33:24 +0000 (+0000) Subject: * tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure X-Git-Tag: release-2-1b~514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38599480fc145d13e530f7faa036ce01592e93e4;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index e409fa261..2c050bca1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-16 Peter Ekberg , + + * 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 * libltdl/argz.c : Avoid redefinition warning. diff --git a/tests/testsuite.at b/tests/testsuite.at index bcdeed60b..8d4196111 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -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]) ])