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:
@@ -468,6 +468,12 @@ CheckRE(
|
|||||||
const char *expected,
|
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;
|
vector<const char *> expected_results;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user