Don't reset class name for empty lines.

Change-Id: Ib8ae9244bb282a10f1696de8f82469474fb0498d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-04-10 11:22:39 +02:00
parent 475c6cea1e
commit 97a8806417

View File

@@ -176,12 +176,12 @@ void TestXmlOutputReader::processOutput()
while (m_testApplication->canReadLine()) {
// 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();
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();
continue;
}
if (xmlStartsWith(line, QLatin1String("<TestCase name=\""), className))
continue;
if (xmlStartsWith(line, QLatin1String("<TestFunction name=\""), testCase)) {
dataTag = QString();
description = QString();