From babcd16bc44f34bbf6add74da38f2ab405a81eb6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Aug 2021 14:21:51 +0200 Subject: [PATCH] Disable CompareStrings() tests failing under Wine There isn't much we can do about it, although perhaps these tests could be re-enabled once https://bugs.winehq.org/show_bug.cgi?id=9583 is fixed. --- tests/intl/intltest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index 50f3ae8eb7..4400834a59 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -292,12 +292,20 @@ TEST_CASE("wxUILocale::CompareStrings", "[uilocale]") CHECK( l.CompareStrings(u8("ä"), "ae") == -1 ); #if defined(__WINDOWS__) || defined(__WXOSX__) + // Unfortunately CompareStringsEx() doesn't seem to work correctly + // under Wine. + if ( wxIsRunningUnderWine() ) + return; + CHECK( l.CompareStrings(u8("ß"), "ss", wxCompare_CaseInsensitive) == 0 ); #endif } SECTION("Swedish") { + if ( wxIsRunningUnderWine() ) + return; + const wxUILocale l("sv"); // And this shows that sort order really depends on the language.