summaryrefslogtreecommitdiffstats
path: root/tests/auto/qelapsedtimer
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-10 10:06:28 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-10 10:12:07 +0200
commit6bc7b6b2598e767363591b48ca10f868454519d7 (patch)
tree39fe74027522489f0bcf81eeb26e8f3fd2d546f0 /tests/auto/qelapsedtimer
parent513bc742b8591711b04d4e2e77512a634d9e4b0b (diff)
Autotest: fix the fix for the rounding error.
Diffstat (limited to 'tests/auto/qelapsedtimer')
-rw-r--r--tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp b/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
index 9ea422c900..498d4d7cea 100644
--- a/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
+++ b/tests/auto/qelapsedtimer/tst_qelapsedtimer.cpp
@@ -118,7 +118,7 @@ void tst_QElapsedTimer::basics()
// However, since QElapsedTimer keeps internally the full resolution,
// we have here a rounding error due to integer division
- QVERIFY(qAbs(elapsed - qint64(value2 - value1)) < 1);
+ QVERIFY(qAbs(elapsed - qint64(value2 - value1)) <= 1);
}
void tst_QElapsedTimer::elapsed()