From 2eefa819c4350a09994221f20168fc00be1d0910 Mon Sep 17 00:00:00 2001 From: Caroline Chao Date: Tue, 16 Oct 2012 13:56:49 +0200 Subject: 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 --- tests/auto/corelib/io/qprocess/testForwarding/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/corelib/io/qprocess/testForwarding/main.cpp') 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; } -- cgit v1.2.3