From c9420aeefffa1eccb417a3985b1cfef049b3fd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tony=20Saraj=C3=A4rvi?= Date: Mon, 16 Nov 2020 09:33:25 +0000 Subject: [PATCH] Conditionally disable tests that depend on cxx11_future flag Task-number: QTBUG-88392 Change-Id: Ic8451ca4052ec4a94f0d78307e1b32965eb18c4e Reviewed-by: Andrei Golubev Reviewed-by: Sona Kurazyan --- tests/auto/other/qobjectrace/tst_qobjectrace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp index 119a658471d..e618ce4958f 100644 --- a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp +++ b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp @@ -334,6 +334,9 @@ private: void tst_QObjectRace::blockingQueuedDestroyRace() { +#if !QT_CONFIG(cxx11_future) + QSKIP("This test requires QThread::create"); +#else enum { MinIterations = 100, MinTime = 3000, WaitTime = 25 }; BlockingQueuedDestroyRaceObject sender; @@ -385,6 +388,7 @@ void tst_QObjectRace::blockingQueuedDestroyRace() receiver->~BlockingQueuedDestroyRaceObject(); } +#endif } static QAtomicInteger countedStructObjectsCount;