aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2014-03-07 15:58:55 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-10 09:43:36 +0100
commit4c6c6d9a1743acf712b83e4dc9330a36afa70f80 (patch)
treeb22105d5225dc7a4fbd0dabe32ee1d6dbe9460e0 /tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp
parent0c5620c43350804a5df03825ae7a849c783fbfeb (diff)
Fixed qqmlapplicationengine autotest build for QT_NO_PROCESS
Change-Id: Ie5993fac36a29a7d7edcadf5030dc2b5bf95b506 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp')
-rw-r--r--tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp b/tests/auto/qml/qqmlapplicationengine/tst_qqmlapplicationengine.cpp
index b5b4ed40a2..b261bb5191 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()