From ebf30adeb66273b8e401700b2ab8087f3364bfcb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 1 Nov 2017 22:06:33 +0100 Subject: [PATCH] Avoid calling strftime() with an invalid format string This results in an assertion from MSVC CRT implementation which was somehow consumed by CppUnit but with the switch to Catch resulted in a test failure. --- tests/datetime/datetimetest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 15f17e856b..ff10973ea7 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -822,7 +822,7 @@ void DateTimeTestCase::TestTimeFormat() } } - CPPUNIT_ASSERT(wxDateTime::Now().Format("%") == "%"); + CPPUNIT_ASSERT(wxDateTime::Now().Format("%%") == "%"); wxDateTime dt;