]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
authorPeter Ekberg <peda@lysator.liu.se>
Fri, 16 Sep 2005 08:33:24 +0000 (08:33 +0000)
committerPeter Rosin <peda@lysator.liu.se>
Fri, 16 Sep 2005 08:33:24 +0000 (08:33 +0000)
that the exit status of the tested program is
propagated as the exit status of the expression
fed to AT_CHECK.

ChangeLog
tests/testsuite.at

index e409fa2616ea2e5bcfee26024ea0b7f4217af9f2..2c050bca1bf3048ea1106e6bf75d1b40701b84d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index bcdeed60b93a358a00be2820fb2a311ed1300a09..8d4196111aeb6d7387fedcfb4170cae3c9fd6948 100644 (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])
 ])