summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsvalidator
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@digia.com>2014-07-07 11:03:30 +0200
committerMaurice Kalinowski <maurice.kalinowski@digia.com>2014-07-07 12:46:21 +0200
commitf4c0bd7d65b814cae7e1ba35f0f7fc1a521860a5 (patch)
tree470e011216f2fdc5553c4cb6578b0d30a20b0803 /tests/auto/xmlpatternsvalidator
parent2ba64c734897daed2b3d7f6aff6cca240e3622d9 (diff)
downloadqtxmlpatterns-f4c0bd7d65b814cae7e1ba35f0f7fc1a521860a5.tar.gz
Compile fix for platforms without process support
Change-Id: Ie150bec62827b592d4b3f2df98a51862d3cc76ae Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'tests/auto/xmlpatternsvalidator')
-rw-r--r--tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp b/tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp
index 19a20ba..ea2a8c7 100644
--- a/tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp
+++ b/tests/auto/xmlpatternsvalidator/tst_xmlpatternsvalidator.cpp
@@ -77,6 +77,7 @@ tst_XmlPatternsValidator::tst_XmlPatternsValidator()
void tst_XmlPatternsValidator::initTestCase()
{
+#ifndef QT_NO_PROCESS
QProcess process;
process.start(m_command);
@@ -90,6 +91,9 @@ void tst_XmlPatternsValidator::initTestCase()
).arg(m_command))
);
}
+#else
+ QSKIP("Skipping test due to not having process support");
+#endif // QT_NO_PROCESS
}
void tst_XmlPatternsValidator::xsdSupport()
@@ -101,6 +105,7 @@ void tst_XmlPatternsValidator::xsdSupport()
QSKIP("WinCE: This test uses unsupported WinCE functionality");
#endif
+#ifndef QT_NO_PROCESS
QFETCH(int, expectedExitCode);
QFETCH(QStringList, arguments);
QFETCH(QString, cwd);
@@ -119,6 +124,9 @@ void tst_XmlPatternsValidator::xsdSupport()
QTextStream(stderr) << "foo:" << process.readAllStandardError();
QCOMPARE(process.exitCode(), expectedExitCode);
+#else
+ QSKIP("Skipping test due to not having process support");
+#endif // QT_NO_PROCESS
}
void tst_XmlPatternsValidator::xsdSupport_data() const