branch: development
commit 605bbd1a3b8313f0fe7dd42a5ce19f01f7a42c48
Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com>
AuthorDate: Wed May 7 17:39:36 2025 +0300

    tests: Skip failing tests on MSVC
    
    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 | 5 +++++
 tests/stresstest.at    | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at
index bfa7b25d..fd6d81e7 100644
--- a/tests/deplibs-mingw.at
+++ b/tests/deplibs-mingw.at
@@ -24,6 +24,11 @@
 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
diff --git a/tests/stresstest.at b/tests/stresstest.at
index 63f17d58..e99de503 100644
--- a/tests/stresstest.at
+++ b/tests/stresstest.at
@@ -28,6 +28,12 @@
 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

Reply via email to