[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: use dry runs in both parts of 'check link mode operation'
From: |
Peter Rosin |
Subject: |
[PATCH] tests: use dry runs in both parts of 'check link mode operation' |
Date: |
Sun, 07 Oct 2012 01:12:56 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
Hi!
I'm pushing this as obvious as this was how link-2.test used to
do it.
Cheers,
Peter
>From 82791b3fb7043f81391bb36047f8533f4dd11b7b Mon Sep 17 00:00:00 2001
From: Peter Rosin <address@hidden>
Date: Sun, 7 Oct 2012 00:57:10 +0200
Subject: [PATCH] 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 <address@hidden>
---
tests/libtool.at | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/libtool.at b/tests/libtool.at
index 4ab405c..3bcdfe5 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
--
1.7.9
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: use dry runs in both parts of 'check link mode operation',
Peter Rosin <=