qt5base-lts/tests/auto
Volker Hilsheimer 715468df40 Fix flaky QElapsedTimer::elapsed test case
Much of this test case was testing that the machine it runs on didn't
take more than an expected amount of time, which is an assumption that
won't hold in a virtual environment where the hypervisor might decide
to not allocate any CPU time to the machine at certain times.

Instead, take the samples that we want to compare with once, then
use them as reference for further comparisons.

Also, split the test in two, with the comparison operators and msecsTo
test moved into a separate test function.

Change-Id: I7db12b8e02552f4d63af933c1b0fee9d62b591eb
Fixes: QTBUG-58713
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-02-27 10:36:57 +01:00
..
bic/data Add binary compatibility files for qtbase 5.14 branch 2019-12-20 10:41:11 +02:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
corelib Fix flaky QElapsedTimer::elapsed test case 2020-02-27 10:36:57 +01:00
dbus unblacklist passing tests 2019-07-08 11:01:42 +00:00
gui Fix bounding box of zero-width entities in QFontEngineFT 2020-02-27 08:59:08 +00:00
guiapplauncher
installed_cmake
network tst_qtcpsocket::bind - amend the recent fix 2020-02-22 03:36:54 +01:00
opengl Remove dead code from Qt 4 times 2019-08-20 22:27:46 +00:00
other Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared Make tst_qwidget pass on High-DPI screens (Windows) 2019-06-03 10:41:08 +02:00
sql tst_QSqlQuery: fix some tests 2019-12-10 06:27:09 +01:00
testlib Fix crash when using signaldumper and sender is deleted 2019-09-23 08:27:18 +00:00
tools uic/Python: Add imports for Q(Date)Time, QKeySequence 2020-02-06 17:46:21 +01:00
widgets Stabilize task255529_transformationAnchorMouseAndViewportMargins 2020-02-27 10:24:09 +01:00
xml QDom: use QLocale::C when converting a double to a xml attribute 2019-11-19 17:33:33 +01:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Autotest: adapt to certain OSes always allowing binding to low ports 2020-02-13 15:11:21 -08:00