qt5base-lts/tests/auto/corelib/kernel/qdeadlinetimer
Volker Hilsheimer 4a1de178c9 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>
2020-02-28 15:15:42 +01:00
..
qdeadlinetimer.pro Long live QDeadlineTimer 2016-08-15 03:07:16 +00:00
tst_qdeadlinetimer.cpp Try again to make QDeadlineTimer test robust against context switches 2020-02-28 15:15:42 +01:00