From 3d488ef8a35edd99a1a5a59756d38feb1ac61bbc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 22 Oct 2019 15:12:39 +0200 Subject: [PATCH] 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. --- tests/datetime/datetimetest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 1bb5b55be8..7f33c2370c 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1711,12 +1711,11 @@ TEST_CASE("wxDateTime::UNow", "[datetime][now][unow]") { now = wxDateTime::Now(); unow = wxDateTime::UNow(); - if ( now.GetSecond() != unow.GetSecond() ) - { - INFO("wxDateTime::Now() and UNow() returned different " - "second values, retrying."); + if ( now.GetSecond() == unow.GetSecond() ) break; - } + + WARN("wxDateTime::Now() and UNow() returned different " + "second values, retrying."); } CHECK( now.GetYear() == unow.GetYear() );