summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-11-26 13:41:26 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-11-27 13:23:42 +0000
commit7eab6a53b17747bf706d9f42bbb13d65f9a97ef6 (patch)
tree09f1e26bf94b69566b5bf4b5c621ddf4d7cc5646
parent28fc8c02b36875dae31c1baa5d77a6d4b08fd0c1 (diff)
downloadqt-creator-7eab6a53b17747bf706d9f42bbb13d65f9a97ef6.tar.gz
Fix missing handling for xml tag
Without this we're running into the QTC_ASSERT within the default case. ("unexpected cdatamode...") Change-Id: I75b3b1ff08ff11064042cd2a877bcfe373b46e45 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
-rw-r--r--plugins/autotest/testxmloutputreader.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/autotest/testxmloutputreader.cpp b/plugins/autotest/testxmloutputreader.cpp
index 63fa9f9287..2f2c41b8d8 100644
--- a/plugins/autotest/testxmloutputreader.cpp
+++ b/plugins/autotest/testxmloutputreader.cpp
@@ -142,6 +142,7 @@ enum CDATAMode {
DataTag,
Description,
QtVersion,
+ QtBuild,
QTestVersion
};
@@ -153,6 +154,7 @@ void TestXmlOutputReader::processOutput()
QStringLiteral("Message"),
QStringLiteral("BenchmarkResult"),
QStringLiteral("QtVersion"),
+ QStringLiteral("QtBuild"),
QStringLiteral("QTestVersion") };
static CDATAMode cdataMode = None;
static QString className;
@@ -226,6 +228,9 @@ void TestXmlOutputReader::processOutput()
} else if (currentTag == QStringLiteral("QtVersion")) {
result = Result::MESSAGE_INTERNAL;
cdataMode = QtVersion;
+ } else if (currentTag == QStringLiteral("QtBuild")) {
+ result = Result::MESSAGE_INTERNAL;
+ cdataMode = QtBuild;
} else if (currentTag == QStringLiteral("QTestVersion")) {
result = Result::MESSAGE_INTERNAL;
cdataMode = QTestVersion;
@@ -249,6 +254,10 @@ void TestXmlOutputReader::processOutput()
case QtVersion:
description = tr("Qt version: %1").arg(text.toString());
break;
+ case QtBuild:
+ // FIXME due to string freeze this is not a tr()
+ description = QString::fromLatin1("Qt build: %1").arg(text.toString());
+ break;
case QTestVersion:
description = tr("QTest version: %1").arg(text.toString());
break;