summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/xmlpatterns/tst_xmlpatterns.cpp')
-rw-r--r--tests/auto/xmlpatterns/tst_xmlpatterns.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
index e207a33..0a189db 100644
--- a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
+++ b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
@@ -822,8 +822,10 @@ void tst_XmlPatterns::removeNonWritable(QFile &outFile)
*/
void tst_XmlPatterns::stdoutFailure() const
{
+#ifdef QT_NO_PROCESS
+ QSKIP("Skipping test due to not having process support");
+#else
return; // TODO It's really hard to write testing code for this.
-#ifndef QT_NO_PROCESS
const QString outName(QLatin1String("stdoutFailure.out"));
createNonWritable(outName);
@@ -845,8 +847,6 @@ void tst_XmlPatterns::stdoutFailure() const
QCOMPARE(process.exitCode(), 1);
removeNonWritable(outFile);
-#else
- QSKIP("Skipping test due to not having process support");
#endif // QT_NO_PROCESS
}