Fixed qqmlapplicationengine autotest build for QT_NO_PROCESS
authorOliver Wolff <oliver.wolff@digia.com>
Fri, 7 Mar 2014 14:58:55 +0000 (15:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Mar 2014 08:43:36 +0000 (09:43 +0100)
Change-Id: Ie5993fac36a29a7d7edcadf5030dc2b5bf95b506
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp

index b5b4ed4..b261bb5 100644 (file)
@@ -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()