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.
This commit is contained in:
Vadim Zeitlin
2017-11-01 22:06:33 +01:00
parent f3f345eec9
commit ebf30adeb6

View File

@@ -822,7 +822,7 @@ void DateTimeTestCase::TestTimeFormat()
}
}
CPPUNIT_ASSERT(wxDateTime::Now().Format("%") == "%");
CPPUNIT_ASSERT(wxDateTime::Now().Format("%%") == "%");
wxDateTime dt;