From 89bc7b522f1871050d6c30956e650bb23c3d8d41 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Jan 2021 02:04:44 +0100 Subject: [PATCH] Use standard timestamp format for debug messages in the tests Don't use the current locale format which doesn't provide all the information (e.g. never includes milliseconds) and explicitly set the format providing it instead when showing wxLogTrace() messages. --- tests/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index f2b0d84ef7..4d6775430d 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -618,6 +618,8 @@ int TestApp::RunTests() // running the tests. if ( !wxGetEnv(wxASCII_STR("WXTRACE"), NULL) ) wxLog::EnableLogging(false); + else + wxLog::SetTimestamp("%Y-%m-%d %H:%M:%S.%l"); #endif // Cast is needed under MSW where Catch also provides an overload taking