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()