]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Expand exit status test in LT_AT_NOINST_EXEC_CHECK correctly
authorPeter Rosin <peda@lysator.liu.se>
Sat, 24 Jan 2009 10:18:15 +0000 (11:18 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Sat, 24 Jan 2009 10:18:15 +0000 (11:18 +0100)
* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): STATUS is
argument $3, not $2.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/testsuite.at

index 1c92883af937a388a9757931a26614f57946a00a..952de787159ca1bffc7895beace4b1c89e0e8710 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-24  Peter Rosin  <peda@lysator.liu.se>
+
+       Expand exit status test in LT_AT_NOINST_EXEC_CHECK correctly
+       * tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): STATUS is
+       argument $3, not $2.
+
 2009-01-23  Charles Wilson  <libtool@cwilson.fastmail.fm>
 
        Add tests for cwrapper with -std=c89 and -std=c99
index 56ca3a2ab474aa126b370ef0f3b03cfaa8925da5..24e817466daa0e2d1fcacbd9633a37706c948dfe 100644 (file)
@@ -248,7 +248,7 @@ AT_CHECK([if "$lt_exe" $5; then :; else lt_status=$?; ]dnl
 m4_define([LT_AT_NOINST_EXEC_CHECK],
 [lt_exe=$1; if test -f "$1$EXEEXT"; then lt_exe=$lt_exe$EXEEXT; fi
 AT_CHECK([if $LIBTOOL --mode=execute $2 "$lt_exe" $6; then :; else lt_status=$?; ]dnl
-        [  m4_ifval([$2], [test $lt_status != $2 && ])]dnl
+        [  m4_ifval([$3], [test $lt_status != $3 && ])]dnl
         [  test "X$host" != "X$build" && test -x "$lt_exe" && exit 77; ]dnl
         [  exit $lt_status; fi],[$3],[$4],[$5])
 ])