AutoTest: Display output of passes on test results pane...

...if possible. If passing tests had output beside the result
it had been omitted so far.

Change-Id: I37fd14714d00fe6a28f079f3fe2ca6e82606fa31
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-01-29 06:53:27 +01:00
parent 2ff75813b2
commit b2c6ea47b1

View File

@@ -252,10 +252,8 @@ void QtTestOutputReader::processOutput()
m_description = tr("QTest version: %1").arg(text.toString()); m_description = tr("QTest version: %1").arg(text.toString());
break; break;
default: default:
QString message = QString::fromLatin1("unexpected cdatamode %1 for text \"%2\"") // this must come from plain printf() calls - but this will be ignored anyhow
.arg(m_cdataMode) qWarning() << "Ignored plain output:" << text.toString();
.arg(text.toString());
QTC_ASSERT(false, qWarning() << message);
break; break;
} }
break; break;
@@ -382,7 +380,9 @@ void GTestOutputReader::processOutput()
auto testResult = new GTestResult(m_currentTestName); auto testResult = new GTestResult(m_currentTestName);
testResult->setTestCase(m_currentTestSet); testResult->setTestCase(m_currentTestSet);
testResult->setResult(Result::Pass); testResult->setResult(Result::Pass);
testResult->setDescription(m_description);
m_futureInterface.reportResult(testResult); m_futureInterface.reportResult(testResult);
m_description.clear();
testResult = new GTestResult(m_currentTestName); testResult = new GTestResult(m_currentTestName);
testResult->setTestCase(m_currentTestSet); testResult->setTestCase(m_currentTestSet);
testResult->setResult(Result::MessageInternal); testResult->setResult(Result::MessageInternal);