Add missing CHECK() to wxUILocale test case for MSW/Mac
Don't forget to check that the locale is actually supported, as expected, under these platforms.
This commit is contained in:
@@ -245,8 +245,8 @@ TEST_CASE("wxLocale::Default", "[locale]")
|
|||||||
static inline bool CheckSupported(const wxUILocale& loc, const char* desc)
|
static inline bool CheckSupported(const wxUILocale& loc, const char* desc)
|
||||||
{
|
{
|
||||||
#if defined(__WINDOWS__) || defined(__WXOSX__)
|
#if defined(__WINDOWS__) || defined(__WXOSX__)
|
||||||
wxUnusedVar(loc);
|
INFO(desc << " locale");
|
||||||
wxUnusedVar(desc);
|
CHECK( loc.IsSupported() );
|
||||||
#else // Unix (not Darwin)
|
#else // Unix (not Darwin)
|
||||||
if ( !loc.IsSupported() )
|
if ( !loc.IsSupported() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user