qt6-bb10/tests/auto/network/socket/qudpsocket
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
..
clientserver Remove the qmake project files 2021-01-07 15:32:28 +01:00
test Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
udpServer Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST Blacklist problematic network auto-tests on macOS ARM 2021-05-26 12:49:56 +02:00
CMakeLists.txt cmake: Enable network test 2019-07-29 13:14:55 +00:00
tst_qudpsocket.cpp Fix QFAIL() to interract correctly with QEXPECT_FAIL() 2021-06-15 18:55:16 +02:00