diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-02-28 12:33:35 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-03-06 17:40:55 +0100 |
commit | 66b356265118dd1246757cc052d4c3a416af707c (patch) | |
tree | 9f4e9bc3f654c9f45fe359551945f620691abc13 /configure.pri | |
parent | 423ddcb23295384cee4cc83b5d890790bf0d8b86 (diff) |
Try again to make QDeadlineTimer test robust against context switches
Instead of comparing to absolute values, compare the result from
QDeadlineTimer with the reference clock types from std::chrono. Pass
the test as long as we are within 10% of that reference.
In addition, handle the case where QTest::qSleep sleeps for more than
10% longer or shorter than what is requested, and if so, abort the
test.
Change-Id: If8b77aea55a8c5c53e96427b2fff2f78281d0f82
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 4a1de178c9cc891560f38d64d89074799b0fa0e1)
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'configure.pri')
0 files changed, 0 insertions, 0 deletions