From 14afeb8512bb4c4614256ebd227c06df2a1c8103 Mon Sep 17 00:00:00 2001 From: Tuomas Heimonen Date: Mon, 31 Aug 2015 14:21:34 +0300 Subject: tst_xmlpatterns: Modified flag QT_NO_PROCESS position Change-Id: Iec0b443027c59cf171eec94968f03dae3ffb136a Reviewed-by: Friedemann Kleint Reviewed-by: Lars Knoll --- tests/auto/xmlpatterns/tst_xmlpatterns.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 { -- cgit v1.2.1