summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-07-29 16:48:00 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-08-05 14:12:07 +0000
commit3c60333595faa6a47c8ef39e26bc5e5af9d19f26 (patch)
tree41dbd585547af4ea24a8da9714d9b0aaa4004494 /src/testlib
parentef3ae54185102e8d30a8fcf3cc6db9f80cbc0c8d (diff)
testlib: Don't report JUnit errors attribute without any <error> elements
The errors attribute on the <testsuite> element represents the number of <error> elements, but we do not produce any at the moment. Task-number: QTBUG-95424 Change-Id: I7196d622a9a6bbb7e79ed2c2886984d539abb1da Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 58f1c0c146aa678b8140cc17388b5e7f3997fcc6) Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qjunittestlogger.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/testlib/qjunittestlogger.cpp b/src/testlib/qjunittestlogger.cpp
index cac447e58f..eb4dc4dee8 100644
--- a/src/testlib/qjunittestlogger.cpp
+++ b/src/testlib/qjunittestlogger.cpp
@@ -314,7 +314,6 @@ void QJUnitTestLogger::addMessage(MessageTypes type, const QString &message, con
messageElement->addAttribute(QTest::AI_Message, message.toUtf8().constData());
currentLogElement->addLogElement(messageElement);
- ++errorCounter;
// Also add the message to the system log (stdout/stderr), if one exists
if (systemLogElement) {