From 38599480fc145d13e530f7faa036ce01592e93e4 Mon Sep 17 00:00:00 2001 From: Peter Ekberg Date: Fri, 16 Sep 2005 08:33:24 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ tests/testsuite.at | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e409fa26..2c050bca 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 bcdeed60..8d419611 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]) ])