From: Peter Rosin Date: Sat, 6 Oct 2012 22:57:10 +0000 (+0200) Subject: tests: use dry runs in both parts of 'check link mode operation' X-Git-Tag: v2.4.2.418~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82791b3fb7043f81391bb36047f8533f4dd11b7b;p=thirdparty%2Flibtool.git tests: use dry runs in both parts of 'check link mode operation' 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 --- diff --git a/tests/libtool.at b/tests/libtool.at index 4ab405cad..3bcdfe59d 100755 --- a/tests/libtool.at +++ b/tests/libtool.at @@ -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