qt5base-lts/tests/auto/testlib
Edward Welbourne c78a960198 QCOMPARE: treat values as equal if qFuzzyIsNull(each)
We hope this shall avoid some flaky failures noticed in quick tests,
e.g. tst_QQuickMenu::Material::subMenuPosition(cascading,flip) was
recently seen failing with 3.88e-11 != 0. This required some revision
to test data in the testlib selftest for floats; the resulting
expected output differs in details but not in which tests pass or
fail. QEMU, naturally, made life difficult, requiring special-case
code in the test-driver.

[ChangeLog][QtTestLib][QCOMPARE] QCOMPARE() now treats its values as
equal when qFuzzyIsNull() is true for both of them.

Change-Id: Icc6ad5164b609937eddbe39cc69120f0abf0f3b4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2020-04-30 13:44:08 +02:00
..
initmain QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00
outformat Test and document QTest::toHexRepresentation() 2018-11-08 15:22:21 +00:00
qabstractitemmodeltester test: migrate QAbstractItemModelTester to QRegularExpression 2019-06-10 09:32:36 +02:00
qsignalspy Introduce QSignalSpy constructor allows to spy on a meta method 2019-08-13 17:26:18 +02:00
selftests QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
testlib.pro QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00