X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/874dbd3a4a318bd7f34548b84cfe0aed9efa42d5..fd5907ffd9b0785bb6eb6f2546101623b23827c5:/tests/strings/crt.cpp diff --git a/tests/strings/crt.cpp b/tests/strings/crt.cpp index e0623f6ac5..6010ef85cd 100644 --- a/tests/strings/crt.cpp +++ b/tests/strings/crt.cpp @@ -44,7 +44,9 @@ public: private: CPPUNIT_TEST_SUITE( CrtTestCase ); CPPUNIT_TEST( SetGetEnv ); +#if wxUSE_UNICODE CPPUNIT_TEST( Strchr ); +#endif // wxUSE_UNICODE CPPUNIT_TEST( Strcmp ); CPPUNIT_TEST( Strspn ); CPPUNIT_TEST( Strcspn ); @@ -53,7 +55,9 @@ private: CPPUNIT_TEST_SUITE_END(); void SetGetEnv(); +#if wxUSE_UNICODE void Strchr(); +#endif // wxUSE_UNICODE void Strcmp(); void Strspn(); void Strcspn(); @@ -91,6 +95,7 @@ void CrtTestCase::SetGetEnv() #undef TESTVAR_NAME } +#if wxUSE_UNICODE void CrtTestCase::Strchr() { // test that searching for a wide character in a narrow string simply @@ -103,6 +108,7 @@ void CrtTestCase::Strchr() CPPUNIT_ASSERT( wxStrchr(wxString::FromUTF8(":-) == \xe2\x98\xba"), static_cast(smiley)) ); } +#endif // wxUSE_UNICODE void CrtTestCase::Strcmp() {