From 8a70b5f9d3a123aece2279786d5e896249af76ec Mon Sep 17 00:00:00 2001 From: Tatiana Borisova Date: Wed, 6 Oct 2021 16:54:31 +0300 Subject: Fix autotest private API part compilation for INTEGRITY - process should be used with config check Change-Id: Ie35df508cacb16078face96ef1834a895614a870 Reviewed-by: Ulf Hermann --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp') diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 25c0166fa0..98b08a0e23 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -9274,6 +9274,9 @@ void tst_qqmlecmascript::hugeStack() void tst_qqmlecmascript::gcCrashRegressionTest() { +#if !QT_CONFIG(process) + QSKIP("Depends on QProcess"); +#else const QString qmljs = QLibraryInfo::path(QLibraryInfo::BinariesPath) + "/qmljs"; if (!QFile::exists(qmljs)) { QSKIP("Tets requires qmljs"); @@ -9317,6 +9320,7 @@ void tst_qqmlecmascript::gcCrashRegressionTest() QVERIFY(pid != 0); QVERIFY(process.waitForFinished()); QCOMPARE(process.exitCode(), 0); +#endif } void tst_qqmlecmascript::bindingOnQProperty() -- cgit v1.2.3