aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2020-11-19 13:43:17 +0000
committerTony Sarajärvi <tony.sarajarvi@qt.io>2020-11-19 14:31:14 +0000
commit5738530116ca5fcf30ea809f81896b19161a9889 (patch)
treed72396b3aa5d551d2f677b171199656a102bf2c7 /tests
parent5123f8cf945a9b789e7b57fbe04487c09f0c3f96 (diff)
Conditionally disable tests that depend on cxx11_future flag
Task-number: QTBUG-88650 Change-Id: I2cac1b8ca7ec8ed8401206cf761244b3f483ca14 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qjsvalue/tst_qjsvalue.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp
index 1771d8ccde..0ae1fb6dfb 100644
--- a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp
+++ b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp
@@ -2694,6 +2694,8 @@ void tst_QJSValue::deleteFromDifferentThread()
{
#if !QT_CONFIG(thread)
QSKIP("Need thread support to destroy QJSValues from different threads");
+#elif !QT_CONFIG(cxx11_future)
+ QSKIP("This test requires QThread::create");
#else
QV4::PersistentValueStorage storage(engine->handle());
QCOMPARE(storage.firstPage, nullptr);