From 3e71f256d5813ef699a4030f718fee1d1e53bba1 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 8 Nov 2024 23:00:09 +0100 Subject: [PATCH] tst_QPromise: complete the port to RUN_TEST_FUNC When we consolidated "all" test functions to use RUN_TEST_FUNC, the cancel() test function was inexplicably overlooked. This patch ports this last test function. Amends 4c00337ccb8e4266fa5a4af4fba40e5b62aba81b, whose commit message contains rationale for this change, but not repeated here. Pick-to: 6.8 6.5 6.2 Change-Id: I9461f8e816a25c731d6229df15ee88dcc8c4e165 Reviewed-by: Ivan Solovev --- tests/auto/corelib/thread/qpromise/tst_qpromise.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp b/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp index 61fc9c46a8e..0adfd373d48 100644 --- a/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp +++ b/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp @@ -404,10 +404,10 @@ void tst_QPromise::cancel() QCOMPARE(promise.isCanceled(), true); }; - testCancel(QPromise()); - testCancel(QPromise()); - testCancel(QPromise()); - testCancel(QPromise()); + RUN_TEST_FUNC(testCancel, QPromise()); + RUN_TEST_FUNC(testCancel, QPromise()); + RUN_TEST_FUNC(testCancel, QPromise()); + RUN_TEST_FUNC(testCancel, QPromise()); } void tst_QPromise::progress()