From 6f688ab9473f48bf3cce90693b889aa769ec3af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 16 Aug 2014 15:49:03 +0200 Subject: [PATCH] "Fix" flaky TimeQueryGLTest. Some operations are too fast so the time reported might as well be 0. --- src/Magnum/Test/TimeQueryGLTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Magnum/Test/TimeQueryGLTest.cpp b/src/Magnum/Test/TimeQueryGLTest.cpp index 233a98b8a..a92a62db0 100644 --- a/src/Magnum/Test/TimeQueryGLTest.cpp +++ b/src/Magnum/Test/TimeQueryGLTest.cpp @@ -56,7 +56,7 @@ void TimeQueryGLTest::queryTime() { const auto result1 = q1.result(); MAGNUM_VERIFY_NO_ERROR(); - CORRADE_VERIFY(result1 > 0); + CORRADE_VERIFY(result1 >= 0); TimeQuery q2; q2.begin(TimeQuery::Target::TimeElapsed); @@ -66,7 +66,7 @@ void TimeQueryGLTest::queryTime() { const auto result2 = q2.result(); MAGNUM_VERIFY_NO_ERROR(); - CORRADE_VERIFY(result2 > result1); + CORRADE_VERIFY(result2 >= result1); } void TimeQueryGLTest::queryTimestamp() { @@ -91,9 +91,9 @@ void TimeQueryGLTest::queryTimestamp() { const auto result2 = q2.result(); MAGNUM_VERIFY_NO_ERROR(); - CORRADE_VERIFY(result > 0); - CORRADE_VERIFY(result2 > result1); - CORRADE_VERIFY(result2-result1 > result); + CORRADE_VERIFY(result >= 0); + CORRADE_VERIFY(result2 >= result1); + CORRADE_VERIFY(result2-result1 >= result); } }}