Replace INFO() with WARN() in wxDateTime::UNow() unit test

Another desperate attempt to understand how are failures such as the one
at https://travis-ci.org/wxWidgets/wxWidgets/jobs/601043830 possible.
This commit is contained in:
Vadim Zeitlin
2019-10-22 15:12:39 +02:00
parent 5d8fdcb874
commit 3d488ef8a3

View File

@@ -1711,12 +1711,11 @@ TEST_CASE("wxDateTime::UNow", "[datetime][now][unow]")
{ {
now = wxDateTime::Now(); now = wxDateTime::Now();
unow = wxDateTime::UNow(); unow = wxDateTime::UNow();
if ( now.GetSecond() != unow.GetSecond() ) if ( now.GetSecond() == unow.GetSecond() )
{
INFO("wxDateTime::Now() and UNow() returned different "
"second values, retrying.");
break; break;
}
WARN("wxDateTime::Now() and UNow() returned different "
"second values, retrying.");
} }
CHECK( now.GetYear() == unow.GetYear() ); CHECK( now.GetYear() == unow.GetYear() );