forked from qt-creator/qt-creator
AutoTest: Only display function name if we have one
Should normally not happen, but may happen if we face sanitizer issues. Change-Id: I5e99fb99f241e24f507f94bce9009c2212188691 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -52,7 +52,9 @@ const QString QtTestResult::outputString(bool selected) const
|
|||||||
case ResultType::UnexpectedPass:
|
case ResultType::UnexpectedPass:
|
||||||
case ResultType::BlacklistedFail:
|
case ResultType::BlacklistedFail:
|
||||||
case ResultType::BlacklistedPass:
|
case ResultType::BlacklistedPass:
|
||||||
output = className + "::" + m_function;
|
output = className;
|
||||||
|
if (!m_function.isEmpty())
|
||||||
|
output.append("::" + m_function);
|
||||||
if (!m_dataTag.isEmpty())
|
if (!m_dataTag.isEmpty())
|
||||||
output.append(QString(" (%1)").arg(m_dataTag));
|
output.append(QString(" (%1)").arg(m_dataTag));
|
||||||
if (selected && !desc.isEmpty()) {
|
if (selected && !desc.isEmpty()) {
|
||||||
@@ -60,7 +62,9 @@ const QString QtTestResult::outputString(bool selected) const
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ResultType::Benchmark:
|
case ResultType::Benchmark:
|
||||||
output = className + "::" + m_function;
|
output = className;
|
||||||
|
if (!m_function.isEmpty())
|
||||||
|
output.append("::" + m_function);
|
||||||
if (!m_dataTag.isEmpty())
|
if (!m_dataTag.isEmpty())
|
||||||
output.append(QString(" (%1)").arg(m_dataTag));
|
output.append(QString(" (%1)").arg(m_dataTag));
|
||||||
if (!desc.isEmpty()) {
|
if (!desc.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user