summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-11-12 09:07:35 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2020-11-12 15:25:07 +0100
commit1e9784e6a295cd5e44481ac773cec91fd46a13b7 (patch)
tree12e87c1631ffe524ad135841f37df6bb8896049f /tests/auto/corelib/thread/qfuture/tst_qfuture.cpp
parente4ee001dead15da0b38e61a182aa5df3d1111caf (diff)
Conditionally disable tests that depend on cxx11_future flag
Fixes: QTBUG-88392 Change-Id: I33b8ffd72be8a653e0923ef1e57305ffaf6b0428 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/corelib/thread/qfuture/tst_qfuture.cpp')
-rw-r--r--tests/auto/corelib/thread/qfuture/tst_qfuture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp b/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp
index 93c97a68be..e2c81840cb 100644
--- a/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp
+++ b/tests/auto/corelib/thread/qfuture/tst_qfuture.cpp
@@ -3084,6 +3084,9 @@ void tst_QFuture::signalConnect()
void tst_QFuture::waitForFinished()
{
+#if !QT_CONFIG(cxx11_future)
+ QSKIP("This test requires QThread::create");
+#else
QFutureInterface<void> fi;
auto future = fi.future();
@@ -3104,6 +3107,7 @@ void tst_QFuture::waitForFinished()
QVERIFY(waitingThread->wait());
QVERIFY(waitingThread->isFinished());
+#endif
}
void tst_QFuture::rejectResultOverwrite_data()