From 9ae91ac318009cd424465236c4f276df625c52ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Thu, 22 Dec 2022 17:07:14 +0100 Subject: [PATCH] Doc: Mark qRegisterTestCase as new in Qt 6.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also remove reference to QTestCaseEvent loop class, which is not documented. Pick-to: 6.5 Change-Id: Ic09b3b102db535dfb090b9a4072ad29515a911ae Reviewed-by: MikoĊ‚aj Boc --- src/testlib/qtestcase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index cebb934973..599bd2efe2 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -2420,6 +2420,8 @@ void QTest::qCleanup() The \a name will be listed when running the batch test binary with no parameters. Running the test binary with the argv[1] of \a name will result in \a entryFunction being called. + + \since 6.5 */ void QTest::qRegisterTestCase(const QString &name, TestEntryFunction entryFunction) { @@ -3040,7 +3042,7 @@ bool QTest::currentTestFailed() This applies if the test has failed or exercised a skip. When it is true, the test function should return early. In particular, the \c{QTRY_*} macros - and \l QTestEventLoop terminate their loops early if executed during the + and the test event loop terminate their loops early if executed during the test function (but not its cleanup()). After a test has called a helper function that uses this module's macros, it can use this function to test whether to return early.