diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index b7cd1b1817..6deb7f89ba 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -468,6 +468,12 @@ CheckRE( const char *expected, ...) { +#if !wxUSE_UNICODE + // Skip tests requiring Unicode support, we can't do anything else. + if ( *data != '\0' && wxString::FromUTF8(data).empty() ) + return; +#endif // wxUSE_UNICODE + vector expected_results; va_list ap;