Avoid qDebug in verbose benchmark test output.
Use QTestLog::info() rather than qDebug() to output informational messages from testlib. Source file and line are deliberately omitted as they would come from testlib rather than from a test program. Change-Id: I7b479bba4d3d553c6fa846d8d5ea2c29a8ef42b8 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
8c2727ac18
commit
f4ccbc2868
@ -1520,9 +1520,13 @@ static void qInvokeTestMethodDataEntry(char *slot)
|
||||
if (QBenchmarkTestMethodData::current->isBenchmark() &&
|
||||
QBenchmarkGlobalData::current->verboseOutput) {
|
||||
if (i == -1) {
|
||||
qDebug() << "warmup stage result :" << QBenchmarkTestMethodData::current->result.value;
|
||||
QTestLog::info(qPrintable(
|
||||
QString::fromLatin1("warmup stage result : %1")
|
||||
.arg(QBenchmarkTestMethodData::current->result.value)), 0, 0);
|
||||
} else {
|
||||
qDebug() << "accumulation stage result:" << QBenchmarkTestMethodData::current->result.value;
|
||||
QTestLog::info(qPrintable(
|
||||
QString::fromLatin1("accumulation stage result: %1")
|
||||
.arg(QBenchmarkTestMethodData::current->result.value)), 0, 0);
|
||||
}
|
||||
}
|
||||
} while (QBenchmarkTestMethodData::current->isBenchmark()
|
||||
|
Loading…
x
Reference in New Issue
Block a user