forked from qt-creator/qt-creator
Don't reset class name for empty lines.
Change-Id: Ib8ae9244bb282a10f1696de8f82469474fb0498d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -176,12 +176,12 @@ void TestXmlOutputReader::processOutput()
|
|||||||
while (m_testApplication->canReadLine()) {
|
while (m_testApplication->canReadLine()) {
|
||||||
// TODO Qt5 uses UTF-8 - while Qt4 uses ISO-8859-1 - could this be a problem?
|
// TODO Qt5 uses UTF-8 - while Qt4 uses ISO-8859-1 - could this be a problem?
|
||||||
const QString line = QString::fromUtf8(m_testApplication->readLine()).trimmed();
|
const QString line = QString::fromUtf8(m_testApplication->readLine()).trimmed();
|
||||||
if (line.isEmpty() || line.startsWith(QLatin1String("<?xml version"))) {
|
if (line.isEmpty() || xmlStartsWith(line, QLatin1String("<TestCase name=\""), className))
|
||||||
|
continue;
|
||||||
|
if (line.startsWith(QLatin1String("<?xml version"))) {
|
||||||
className = QString();
|
className = QString();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (xmlStartsWith(line, QLatin1String("<TestCase name=\""), className))
|
|
||||||
continue;
|
|
||||||
if (xmlStartsWith(line, QLatin1String("<TestFunction name=\""), testCase)) {
|
if (xmlStartsWith(line, QLatin1String("<TestFunction name=\""), testCase)) {
|
||||||
dataTag = QString();
|
dataTag = QString();
|
||||||
description = QString();
|
description = QString();
|
||||||
|
Reference in New Issue
Block a user