Skip wxRegEx tests requiring Unicode support if wxUSE_UNICODE=0

There is not much else that can be done if we can't even represent the
contents of the test data properly.
This commit is contained in:
Vadim Zeitlin
2021-07-18 20:33:37 +02:00
parent 3415325f4f
commit 68a293e75d

View File

@@ -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<const char *> expected_results;
va_list ap;