]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
archive-in-archive.at passes with Microsoft lib.
authorPeter Rosin <peda@lysator.liu.se>
Tue, 31 Aug 2010 18:59:11 +0000 (20:59 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 31 Aug 2010 18:59:11 +0000 (20:59 +0200)
* tests/archive-in-archive.at: Tighten test to check that the desired
object files are indeed part of the archive. Microsoft lib still
passes, so remove the expected failure for that case.

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

index 355b4854a10c44609bf371c62f90522fb0e8ecc3..585356c51e96294810fe514ab0f2f30128999390 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-08-31  Peter Rosin  <peda@lysator.liu.se>
 
+       archive-in-archive.at passes with Microsoft lib.
+       * tests/archive-in-archive.at: Tighten test to check that the desired
+       object files are indeed part of the archive. Microsoft lib still
+       passes, so remove the expected failure for that case.
+
        Dump archiver output to the log when testing @file support.
        * libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout to config.log
        when testing for @file support.
index 32e3543b452fc2ea7a352c8a3353ee24c9594980..fd67c7d416ffb3b8e2cd170c0438bec0763fa4b4 100644 (file)
@@ -26,7 +26,8 @@
 AT_SETUP([static library contains static library])
 AT_KEYWORDS([libtool])
 
-AT_XFAIL_IF([:]) dnl This is currently broken
+# This test passes with MS lib.
+AT_XFAIL_IF([case $AR in ar-lib\ * | *[[/\\]]ar-lib\ *) false;; *) :;; esac])
 
 AT_DATA([foo.c],
 [
@@ -53,4 +54,6 @@ AT_CHECK([$LIBTOOL --mode=install cp libbar.la $thisdir], [], [ignore], [ignore]
 eval `$EGREP '^(old_library)=' < libbar.la`
 libbar=$old_library
 AT_CHECK([$AR -t $libbar | grep $libfoo],[1],[ignore],[ignore])
+AT_CHECK([$AR -t $libbar | grep foo.$OBJEXT],[],[ignore],[ignore])
+AT_CHECK([$AR -t $libbar | grep bar.$OBJEXT],[],[ignore],[ignore])
 AT_CLEANUP