diff options
author | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2020-11-16 09:33:25 +0000 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2020-11-17 05:21:06 +0000 |
commit | c9420aeefffa1eccb417a3985b1cfef049b3fd34 (patch) | |
tree | 45ec7377c57d291fa5b6ca75d7511970f9f1186d /tests/auto/other | |
parent | 76dc75c5ff32f61782a413df4915f4ebe9236d76 (diff) |
Conditionally disable tests that depend on cxx11_future flag
Task-number: QTBUG-88392
Change-Id: Ic8451ca4052ec4a94f0d78307e1b32965eb18c4e
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/qobjectrace/tst_qobjectrace.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp index 119a658471..e618ce4958 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<unsigned> countedStructObjectsCount; |