From 8d962b0121f93207a73174ec4d8b4836b802dbab Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Oct 2019 23:04:43 +0200 Subject: [PATCH] Add a diagnostic message to wxDateTime::UNow() unit test Try to understand what's going in Travis CI builds. --- tests/datetime/datetimetest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 2a259ea8a9..1bb5b55be8 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1711,8 +1711,12 @@ TEST_CASE("wxDateTime::UNow", "[datetime][now][unow]") { now = wxDateTime::Now(); unow = wxDateTime::UNow(); - if ( now.GetSecond() == unow.GetSecond() ) + if ( now.GetSecond() != unow.GetSecond() ) + { + INFO("wxDateTime::Now() and UNow() returned different " + "second values, retrying."); break; + } } CHECK( now.GetYear() == unow.GetYear() );