Add a diagnostic message to wxDateTime::UNow() unit test
Try to understand what's going in Travis CI builds.
This commit is contained in:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user