summaryrefslogtreecommitdiffstats
path: root/tests/auto/qelapsedtimer
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-10 08:06:28 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-10 08:12:07 (GMT)
commit6bc7b6b2598e767363591b48ca10f868454519d7 (patch)
tree39fe74027522489f0bcf81eeb26e8f3fd2d546f0 /tests/auto/qelapsedtimer
parent513bc742b8591711b04d4e2e77512a634d9e4b0b (diff)
downloadQt-6bc7b6b2598e767363591b48ca10f868454519d7.zip
Qt-6bc7b6b2598e767363591b48ca10f868454519d7.tar.gz
Qt-6bc7b6b2598e767363591b48ca10f868454519d7.tar.bz2
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 9ea422c..498d4d7 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()