From 4c6c6d9a1743acf712b83e4dc9330a36afa70f80 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Fri, 7 Mar 2014 15:58:55 +0100 Subject: [PATCH] Fixed qqmlapplicationengine autotest build for QT_NO_PROCESS Change-Id: Ie5993fac36a29a7d7edcadf5030dc2b5bf95b506 Reviewed-by: Andrew Knight --- tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp b/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp index b5b4ed4..b261bb5 100644 --- a/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp +++ b/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp @@ -108,6 +108,7 @@ void tst_qqmlapplicationengine::application() Note that checking the output means that on builds with extra debugging, this might fail with a false positive. Also the testapp is automatically built and installed in shadow builds, so it does NOT use testData */ +#ifndef QT_NO_PROCESS QDir::setCurrent(buildDir); QProcess *testProcess = new QProcess(this); QStringList args; @@ -125,6 +126,9 @@ void tst_qqmlapplicationengine::application() QCOMPARE(test_stderr, test_stderr_target); delete testProcess; QDir::setCurrent(srcDir); +#else // !QT_NO_PROCESS + QSKIP("No process support"); +#endif // QT_NO_PROCESS } void tst_qqmlapplicationengine::applicationProperties() -- 2.7.4