diff --git a/tests/xlocale/xlocale.cpp b/tests/xlocale/xlocale.cpp index 2c00722869..55eb58b853 100644 --- a/tests/xlocale/xlocale.cpp +++ b/tests/xlocale/xlocale.cpp @@ -69,17 +69,16 @@ void XLocaleTestCase::TestCtor() CPPUNIT_ASSERT( wxXLocale("C").IsOk() ); CPPUNIT_ASSERT( !wxXLocale("bloordyblop").IsOk() ); - if (!wxLocale::IsAvailable(wxLANGUAGE_FRENCH)) - return; // you should have french support installed to continue this test! - #ifdef wxHAS_XLOCALE_SUPPORT - CPPUNIT_ASSERT( wxXLocale(wxLANGUAGE_FRENCH).IsOk() ); + if ( wxXLocale(wxLANGUAGE_FRENCH).IsOk() ) + { #ifdef __WINDOWS__ - CPPUNIT_ASSERT( wxXLocale("french").IsOk() ); + CPPUNIT_ASSERT( wxXLocale("french").IsOk() ); #else - CPPUNIT_ASSERT( wxXLocale("fr_FR").IsOk() ); -#endif + CPPUNIT_ASSERT( wxXLocale("fr_FR").IsOk() ); #endif + } +#endif // wxHAS_XLOCALE_SUPPORT } void XLocaleTestCase::PreserveLocale()