summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/testForwarding/main.cpp
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2012-10-16 13:56:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-29 13:57:15 +0100
commit2eefa819c4350a09994221f20168fc00be1d0910 (patch)
treeeb6d295374ca5794547e33f40f41bb897682333b /tests/auto/corelib/io/qprocess/testForwarding/main.cpp
parent9c0544f8848e3552c7c5ce79d8908d08d51a0f28 (diff)
Test: refactor tst_QProcess
Remove QSKIP and instead omit the whole tests when appropriate. Remove QSKIP from crashTest, crashTest2 and exitStatus on Windows, the tests are now passing. Add a guard in testForwarding to check if QT_NO_PROCESS is defined. Change-Id: Icba4d773315e3bf87764a381742168b51cf169c0 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests/auto/corelib/io/qprocess/testForwarding/main.cpp')
-rw-r--r--tests/auto/corelib/io/qprocess/testForwarding/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qprocess/testForwarding/main.cpp b/tests/auto/corelib/io/qprocess/testForwarding/main.cpp
index ca0dc3986a..126a63c19c 100644
--- a/tests/auto/corelib/io/qprocess/testForwarding/main.cpp
+++ b/tests/auto/corelib/io/qprocess/testForwarding/main.cpp
@@ -43,6 +43,7 @@
int main()
{
+#ifndef QT_NO_PROCESS
QProcess process;
process.setProcessChannelMode(QProcess::ForwardedChannels);
if (process.processChannelMode() != QProcess::ForwardedChannels)
@@ -62,6 +63,6 @@ int main()
process.closeWriteChannel();
process.waitForFinished(5000);
-
+#endif
return 0;
}