summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qobject/tst_qobject.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-09-18 11:59:55 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-10-27 17:43:12 +0200
commitc293ab71bd45b36870aa016663b6f340aa1d4a8e (patch)
tree992abce30e4f9a686bcc1f6b0ac8c722e08b5013 /tests/auto/corelib/kernel/qobject/tst_qobject.cpp
parentd5050dcec47c38c4ac3a9022744b252b6b5b1212 (diff)
Fix tst_QDeadlineTimer::stdchrono() flaky test
This patch reverts the last attempt to fix it: 4a1de178c9cc891560f38d64d89074799b0fa0e1. In addition, instead of using imprecise QTest::qSleep() we trigger a single shot PreciseTimer twice and gather the measurements in lambdas. We wait for lambdas to be executed - we give it twice as much time as is in theory needed. Afterwards we verify all the data collected in lambdas. Fixes: QTBUG-82825 Change-Id: Ib691f5f23a92fb8b41a24f7b603981d9c9450ddc Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qobject/tst_qobject.cpp')
0 files changed, 0 insertions, 0 deletions