]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: use dry runs in both parts of 'check link mode operation'
authorPeter Rosin <peda@lysator.liu.se>
Sat, 6 Oct 2012 22:57:10 +0000 (00:57 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Sat, 6 Oct 2012 22:57:10 +0000 (00:57 +0200)
MSVC exits with status 2 instead of the expected 1 when a
real link is attempted.

* tests/libtool.at (check link mode operation): Use a dry run and
expect a clean exit status instead of expecting a fail.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
tests/libtool.at

index 4ab405cad868a53f23bca5905424d6dc1734dd7f..3bcdfe59d00636446b53aa3d5aac7981b0ef4a09 100755 (executable)
@@ -192,7 +192,7 @@ pic_object=none
 non_pic_object=hell.o
 ]])
 
-AT_CHECK([$LIBTOOL --mode=link $CC -o something foo.o hell.lo], [1], [stdout], [ignore])
+AT_CHECK([$LIBTOOL -n --mode=link $CC -o something foo.o hell.lo], [0], [stdout], [ignore])
 AT_CHECK([$FGREP '.lo ' stdout], [1], [ignore])
 
 AT_CLEANUP