]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: Skip failing tests on MSVC
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 7 May 2025 14:39:36 +0000 (17:39 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 7 Aug 2025 17:20:04 +0000 (20:20 +0300)
Test 'deplibs without file command' fails on MSVC with a 'hard failure'.
Since this test was created for MinGW, skipping for now.

Test 'Libtool stress test.' fails on MSVC when the cl compiler cannot
open an expsym file, which appears to exist but is empty.

* tests/deplibs-mingw.at: Add check for MSVC build to skip test.
* tests/stresstest.at: Add check for MSVC build to skip test.

tests/deplibs-mingw.at
tests/stresstest.at

index bfa7b25d26f43bcbfdc952cfe5d1fc2b3e7cb8c2..fd6d81e7e0457565fb70c1678a242662a84089ee 100644 (file)
 AT_SETUP([deplibs without file command])
 AT_KEYWORDS([libtool])
 
+# Skip failing test on MSVC
+if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then
+  AT_CHECK([exit 77])
+fi
+
 cwd=`pwd`
 instdir=$cwd/inst
 libdir=$instdir/lib
index 63f17d581db57021b6715f9502af61d754945c9b..e99de50332330f9b45fbd5145a04b1f167059078 100644 (file)
 AT_BANNER([Libtool stress test.])
 AT_SETUP([Link option thorough search test])
 AT_KEYWORDS([libtool expensive])
+
+# Skip failing test on MSVC
+if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then
+  AT_CHECK([exit 77])
+fi
+
 eval `$LIBTOOL --config | $EGREP '^(CC|objdir|allow_undefined_flag)='`
 
 mkdir sub sub2 sub3 2>/dev/null