mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-27 16:38:44 +08:00
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:
1 parent
8a8b8d3a83
commit
b9726c02d5
1 file changed
+13
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user