summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-04-08 09:10:17 +0200
committerAkseli Salovaara <akseli.salovaara@theqtcompany.com>2016-04-14 13:24:25 +0000
commitfb1dc19bf195c530b7f44d18cc927472b9866a46 (patch)
tree1204e97c5b2b8899b6c05fe423d626512e9f3a57 /tests
parent9661c2a29f4bacf77170eb6b3cf016fdb6631f82 (diff)
downloadqtxmlpatterns-fb1dc19bf195c530b7f44d18cc927472b9866a46.tar.gz
tst_XmlPatterns::xquerySupport - silence logging category
On 10.11 SSL code started producing error messages recently (under investigation) making a test, that expects no error messages to fail. It's a quick and dirty fix. Change-Id: I2339aad551633b378727329d326e610e669b3b2f Reviewed-by: Akseli Salovaara <akseli.salovaara@theqtcompany.com> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/xmlpatterns/tst_xmlpatterns.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
index 61fa555..223f713 100644
--- a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
+++ b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
@@ -148,6 +148,12 @@ void tst_XmlPatterns::xquerySupport()
if(!cwd.isEmpty())
process.setWorkingDirectory(inputFile(cwd));
+#ifdef Q_OS_OSX
+ QProcessEnvironment env(process.processEnvironment());
+ env.insert("QT_LOGGING_RULES", "qt.network.ssl=false");
+ process.setProcessEnvironment(env);
+#endif
+
process.start(m_command, arguments);
QVERIFY2(process.waitForStarted(), msgProcessError("Failed to start", process).constData());