diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 7f33c2370c..6c9af98035 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -20,6 +20,7 @@ #ifndef WX_PRECOMP #include "wx/time.h" // wxGetTimeZone() + #include "wx/utils.h" // wxMilliSleep() #endif // WX_PRECOMP #include "wx/wxcrt.h" // for wxStrstr() @@ -1715,7 +1716,11 @@ TEST_CASE("wxDateTime::UNow", "[datetime][now][unow]") break; WARN("wxDateTime::Now() and UNow() returned different " - "second values, retrying."); + "second values (" + << now.GetSecond() << " and " << unow.GetSecond() << + "), retrying."); + + wxMilliSleep(123); } CHECK( now.GetYear() == unow.GetYear() );