From e7b00507e967be23bbc81fa4d1ad71e343597bcb Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Fri, 8 Sep 2017 16:51:49 -0700 Subject: [PATCH] Skip a TWLocale test on Cygwin since it doesn't like the 'C' locale --- src/twtest/twlocale_t.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/twtest/twlocale_t.cpp b/src/twtest/twlocale_t.cpp index b6f050f..416be2e 100644 --- a/src/twtest/twlocale_t.cpp +++ b/src/twtest/twlocale_t.cpp @@ -89,6 +89,7 @@ void TestAtoi() void TestItoa() { +#if !IS_CYGWIN // // can't do ASSERT( str == _T("123456") ) // because locale may turn it into "123,465" or whatever @@ -120,6 +121,9 @@ void TestItoa() std::locale::global( std::locale("") ); cTWLocale::FormatNumber( n, str ); TEST( str == "123,456" ); +#else + skip("Test disabled because Cygwin doesn't like the 'C' locale for some reason"); +#endif } /* We don't do atoi stuff in cTWLocale anymore, so no roundtrip