summaryrefslogtreecommitdiffstats
path: root/src/testlib/qjunittestlogger.cpp
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 03:58:50 +0200
commit58f1c0c146aa678b8140cc17388b5e7f3997fcc6 (patch)
tree94eff020b18087535797dcafb046424ffa32f8d4 /src/testlib/qjunittestlogger.cpp
parent5a483656bca949f6c31b5da5339fa5cbe1dfac76 (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. Pick-to: 6.2 Task-number: QTBUG-95424 Change-Id: I7196d622a9a6bbb7e79ed2c2886984d539abb1da Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/testlib/qjunittestlogger.cpp')
-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) {