diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com> | 2015-09-08 15:04:58 +0300 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2015-09-11 13:12:30 +0000 |
commit | 670b2073c0b1c40f5b67fc36c18ed15fe2cdfee2 (patch) | |
tree | 373ce00e92712f1ed3846c374be1172c35593959 /tests/auto/xmlpatterns | |
parent | eefb48c8568876527b1d85f00d34a45d62d8a6f8 (diff) | |
download | qtxmlpatterns-670b2073c0b1c40f5b67fc36c18ed15fe2cdfee2.tar.gz |
Change-Id: Ied9eefcaff7c7a991cde483dc08c6905ba9ca421
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
Diffstat (limited to 'tests/auto/xmlpatterns')
-rw-r--r-- | tests/auto/xmlpatterns/tst_xmlpatterns.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp index ffb1697..7c18bf6 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: @@ -810,10 +808,10 @@ 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 { return; // TODO It's really hard to write testing code for this. +#ifndef QT_NO_PROCESS const QString outName(QLatin1String("stdoutFailure.out")); createNonWritable(outName); @@ -835,8 +833,10 @@ 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 } -#endif void tst_XmlPatterns::cleanupTestCase() const { |