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.
This commit is contained in:
Vadim Zeitlin
2021-08-30 14:21:51 +02:00
parent ae81d9d207
commit babcd16bc4

View File

@@ -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.