forked from qt-creator/qt-creator
Move TestType enum into constants...
...to avoid defining the enum in several places although almost having the same meaning. Additionally rename the values to ensure not to run in a name clash at some point. Change-Id: I0f23041b785c87efd3e7feebef855042595473f6 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
committed by
Niels Weber
parent
97011c6951
commit
54d753574e
@@ -48,9 +48,9 @@ QString TestResultDelegate::outputString(const TestResult &testResult, bool sele
|
||||
case Result::UnexpectedPass:
|
||||
case Result::BlacklistedFail:
|
||||
case Result::BlacklistedPass:
|
||||
if (testResult.type() == TestResult::Qt)
|
||||
if (testResult.type() == TestTypeQt)
|
||||
output = testResult.className() + QLatin1String("::") + testResult.testCase();
|
||||
else // TestResult::GTest
|
||||
else // TestTypeGTest
|
||||
output = testResult.testCase();
|
||||
if (!testResult.dataTag().isEmpty())
|
||||
output.append(QString::fromLatin1(" (%1)").arg(testResult.dataTag()));
|
||||
|
||||
Reference in New Issue
Block a user