Disable sporadically failing test in MSVS 2019 CI build

This is not great, but this tests keep failing for no apparent reason.

Closes #25056.
This commit is contained in:
Vadim Zeitlin committed 2025-05-09 19:45:04 +02:00
1 parent 8a8b8d3a83
commit b9726c02d5
1 file changed
+13
+13
View File
@@ -96,6 +96,19 @@ TEST_CASE("StringFormat", "[wxString]")
TEST_CASE("StringFormatUnicode", "[wxString]")
{
// For some completely mysterious reason, the test below sometimes crashes
// when run on GitHub Actions with MSVS 2019 in static debug build (see
// #25056), so skip it in this case.
#ifdef _MSC_VER && defined(_DEBUG) && !defined(WXUSINGDLL)
#if _MSC_VER >= 1920 && _MSC_VER < 1930
if ( IsAutomaticTest() )
{
WARN("Skipping test in static debug build with MSVS 2019");
return;
}
#endif // MSVS 2019
#endif // _MSC_VER
#ifndef __WINDOWS__
// At least under FreeBSD vsnprintf(), used by wxString::Format(), doesn't
// work with Unicode strings unless a UTF-8 locale is used, so set it.