qt5base-lts/tests/auto/testlib
Edward Welbourne a93a9ea915 Fix QFAIL() to interract correctly with QEXPECT_FAIL()
Previously, it went direct to QTestResults::addFailure() without going
via the checking for expected failure. Add QTestResults::fail() to
take care of this checking, as for verify() and compare().

Tidied up the code implementing expected failure and QFAIL(), while I
was about it. Adjusted an existing test to verify that expecting a
QFAIL() works, by using QFAIL() instead of QVERIFY(false).

Remove the QVERIFY(false) whose comment brought this to my attention.

[ChangeLog][QtTestLib][QFAIL] QEXPECT_FAIL() now correctly anticipates
a subsequent QFAIL(). Previously QFAIL() counted as a fail regardless.

Change-Id: Icc28cf70e5ff3006363791ea03aa01f2f591eb71
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-06-15 18:55:16 +02:00
..
initmain Remove the qmake project files 2021-01-07 15:32:28 +01:00
outformat Remove the qmake project files 2021-01-07 15:32:28 +01:00
qabstractitemmodeltester Fix QAbstractItemModelTester false positive 2021-04-26 13:44:51 +01:00
qsignalspy Remove the qmake project files 2021-01-07 15:32:28 +01:00
selftests Fix QFAIL() to interract correctly with QEXPECT_FAIL() 2021-06-15 18:55:16 +02:00
CMakeLists.txt Android: exclude faulty tst_selftests 2020-11-25 23:08:09 +02:00