qt6-bb10/tests/auto/corelib
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
..
animation Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
codecs Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
global Fix encoding expected by tst_qmessagehandler::qMessagePattern() 2020-01-09 10:58:25 +01:00
io tst_QSettings: Fix leaking registry key 2020-02-25 20:16:20 +01:00
itemmodels Let QItemSelectionModel::columnIntersectsSelection honor the parent 2019-12-14 08:46:37 +01:00
kernel Fix flaky QElapsedTimer::elapsed test case 2020-02-27 10:36:57 +01:00
mimetypes Remove handling of missing Q_COMPILER_RVALUE_REFS 2019-05-01 20:24:45 +00:00
plugin Disable debug-and-release builds for MinGW 2019-09-18 06:28:16 +00:00
serialization QXmlStreamReader: early return in case of malformed attributes 2020-01-23 19:44:09 +01:00
statemachine QStateMachine: Don't scream at the user 2019-10-24 10:26:03 +02:00
text Only read the first BOM as a BOM; the rest are ZWNBS ! 2020-02-14 19:13:37 +01:00
thread Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
time Combine negativeYear() and printNegativeYear() 2020-01-14 10:47:19 +01:00
tools Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
corelib.pro Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00