summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomas Heimonen <tuomas.heimonen@theqtcompany.com>2015-08-31 14:21:34 +0300
committerTuomas Heimonen <tuomas.heimonen@theqtcompany.com>2015-09-11 13:03:03 +0000
commit14afeb8512bb4c4614256ebd227c06df2a1c8103 (patch)
treea954e7b9b99f60c82b3720ff6ff60eb2c8d06215
parentb7f63b27bc204eff4a88a5ab83f6ad42de89d64c (diff)
downloadqtxmlpatterns-14afeb8512bb4c4614256ebd227c06df2a1c8103.tar.gz
tst_xmlpatterns: Modified flag QT_NO_PROCESS position
Change-Id: Iec0b443027c59cf171eec94968f03dae3ffb136a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
-rw-r--r--tests/auto/xmlpatterns/tst_xmlpatterns.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
index 85dc50a..e43bd68 100644
--- a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
+++ b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
@@ -66,9 +66,7 @@ private Q_SLOTS:
void xquerySupport_data() const;
void xsltSupport();
void xsltSupport_data() const;
-#ifndef QT_NO_PROCESS
void stdoutFailure() const;
-#endif
void cleanupTestCase() const;
private:
@@ -803,9 +801,11 @@ void tst_XmlPatterns::removeNonWritable(QFile &outFile)
Check that we gracefully handle writing out to stdout
when the latter is not writable.
*/
-#ifndef QT_NO_PROCESS
void tst_XmlPatterns::stdoutFailure() const
{
+#ifdef QT_NO_PROCESS
+ QSKIP("No QProcess available");
+#else
return; // TODO It's really hard to write testing code for this.
const QString outName(QLatin1String("stdoutFailure.out"));
@@ -828,8 +828,8 @@ void tst_XmlPatterns::stdoutFailure() const
QCOMPARE(process.exitCode(), 1);
removeNonWritable(outFile);
+#endif // QT_NO_PROCESS
}
-#endif
void tst_XmlPatterns::cleanupTestCase() const
{