Add a diagnostic message to wxDateTime::UNow() unit test

Try to understand what's going in Travis CI builds.
This commit is contained in:
Vadim Zeitlin
2019-10-19 23:04:43 +02:00
parent 248d4a8631
commit 8d962b0121

View File

@@ -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() );