diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro deleted file mode 100644 index ecf5f1ff21529cfebc9a1b2dbf1d6bf540ed32f8..0000000000000000000000000000000000000000 --- a/tests/auto/headersclean/headersclean.pro +++ /dev/null @@ -1,3 +0,0 @@ -QT = xmlpatterns -load(qt_headersclean) -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/host.pro b/tests/auto/host.pro index 6bc8753fb0705ce61c3141cb5c7e4de7194c3de7..4095052a9beb0f1b416e2db6ad03b8c394f6c81b 100644 --- a/tests/auto/host.pro +++ b/tests/auto/host.pro @@ -1,4 +1,4 @@ TEMPLATE=subdirs SUBDIRS=\ - headersclean \ + diff --git a/tests/auto/xmlpatternssdk/Worker.cpp b/tests/auto/xmlpatternssdk/Worker.cpp index d17696e068f96c056ad894aeabcf6622ce4a045d..883599d957390cfaf6d66aee6cdb4415233c55f1 100644 --- a/tests/auto/xmlpatternssdk/Worker.cpp +++ b/tests/auto/xmlpatternssdk/Worker.cpp @@ -209,6 +209,8 @@ void Worker::threadFinished() else if(m_unexpectedPasses.isEmpty() && baselineCount == resultCount) { err << "Result was identical to the baseline, baseline was not updated.\n"; + err.flush(); + QTextStream(stderr) << out; m_eventLoop.exit(ExitCode::Success); return; } diff --git a/tests/auto/xmlpatternssdk/XMLWriter.cpp b/tests/auto/xmlpatternssdk/XMLWriter.cpp index 635f693851c01212013abc0c72df125e17e2a1a4..71ef022fbf5ce1af443b4fe9d1a6fdc1ea2f60e2 100644 --- a/tests/auto/xmlpatternssdk/XMLWriter.cpp +++ b/tests/auto/xmlpatternssdk/XMLWriter.cpp @@ -76,12 +76,6 @@ using namespace QPatternistSDK; typedef QPair<QString, QString> NSBinding; typedef QList<NSBinding> NSBindingList; -#ifdef QT_NO_DEBUG -# define DEBUG_CODE(code) -#else -# define DEBUG_CODE(code) code -#endif - class XMLWriter::Private { public: @@ -290,8 +284,8 @@ public: QIODevice *dev; QStack<bool> hasContentStack; QString errorString; - DEBUG_CODE(QStack<QString> tags;) - DEBUG_CODE(QStack<NSBindingList> namespaceTracker;) + QStack<QString> tags; + QStack<NSBindingList> namespaceTracker; }; /** @@ -364,8 +358,8 @@ bool XMLWriter::startElement(const QString &qName, serialize('<'); serialize(qName); - DEBUG_CODE(d->tags.push(qName)); - DEBUG_CODE(d->namespaceTracker.push(d->namespaces)); + d->tags.push(qName); + d->namespaceTracker.push(d->namespaces); /* Add namespace declarations. */ const NSBindingList::const_iterator end(d->namespaces.constEnd()); @@ -421,7 +415,7 @@ bool XMLWriter::endElement(const QString &qName) Q_ASSERT_X(d->tags.pop() == qName, Q_FUNC_INFO, "The element tags are not balanced, the produced XML is invalid."); - DEBUG_CODE(d->namespaceTracker.pop()); + d->namespaceTracker.pop(); /* "this" element is content for our parent, so ensure hasElementContent is true. */