Commit 7eab6a53 authored by Christian Stenger's avatar Christian Stenger
Browse files

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: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 28fc8c02
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment