qt5base-lts/tests/auto/corelib
Jarek Kobus 6ca50b79bc Fix tst_QElapsedTimer::elapsed() flaky test
Instead of using imprecise QTest::qSleep() to estimate the
elapsed time, we trigger a single shot PreciseTimer and
gather all the data in lambda. We wait for lambda to be
executed - we give it twice as much time as is in theory
needed. Afterwards we verify all the data collected in lambda.

Task-number: QTBUG-82903
Change-Id: I0147b7cd2aaf4bf58a216caff167d2db8712541a
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-09-15 21:07:00 +02:00
..
animation Revert "Remove timeStep parameter from QAnimationDrive::advanceAnimation" 2020-09-11 17:11:02 +02:00
global Tests: fix qlogging build fail for Android 2020-09-15 09:32:08 +00:00
io CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
itemmodels Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
kernel Fix tst_QElapsedTimer::elapsed() flaky test 2020-09-15 21:07:00 +02:00
mimetypes Fix warnings about unused expression results in tests 2020-07-29 14:33:29 +02:00
plugin Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
serialization Tests: fix json test for Android 2020-09-15 09:32:09 +00:00
text Use UTF-8 when converting 8 bit data in QTextStream 2020-09-15 08:13:27 +02:00
thread Purge Q_{STDLIB,COMPILER}_UNICODE_STRINGS 2020-09-14 09:47:51 +02:00
time Trim trailing 0s from QTime construction, where neither use nor ornament 2020-09-15 02:47:28 +02:00
tools Blacklist tst_QTimeLine::interpolation on Windows in general 2020-09-15 11:32:08 +02:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00