From: Ileana Dumitrescu Date: Wed, 7 May 2025 14:39:36 +0000 (+0300) Subject: tests: Skip failing tests on MSVC X-Git-Tag: v2.6.0~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d78a0a0d6b0c25e371c44c8563e51ffb9e80f59d;p=thirdparty%2Flibtool.git 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. --- diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at index bfa7b25d2..fd6d81e7e 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 63f17d581..e99de5033 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