diff options
author | Daniel Smith <daniel.smith@qt.io> | 2019-06-06 14:42:27 +0200 |
---|---|---|
committer | Daniel Smith <daniel.smith@qt.io> | 2019-06-06 14:42:36 +0200 |
commit | 33476a8cee84c1ee772350844228331dbfb005c3 (patch) | |
tree | 49beb533676a2afca2444098d36bac56685e093a /tests/auto | |
parent | 3961cf124af9d811da4bbe72bb28508aef71c7df (diff) |
Skip tst_qjsengine test 'interrupt' if c++11_futures feature unavailable
The test uses qthread, requiring c++11 futures which may not be available
on some systems
Fixes: QTBUG-76235
Change-Id: Ib8ed4f37b0d174e3d53166a11e212bcc8e7d35a0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qml/qjsengine/tst_qjsengine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp index 6ca2663f30..7dffe47ecd 100644 --- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp +++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp @@ -4892,6 +4892,7 @@ private: void tst_QJSEngine::interrupt() { +#if QT_CONFIG(cxx11_future) QFETCH(int, jitThreshold); QFETCH(QString, code); @@ -4916,6 +4917,9 @@ void tst_QJSEngine::interrupt() QVERIFY(worker->wait()); QVERIFY(!engineInThread); +#else + QSKIP("This test requires C++11 futures"); +#endif } QTEST_MAIN(tst_QJSEngine) |