diff options
Diffstat (limited to 'src/testlib/qjunittestlogger.cpp')
-rw-r--r-- | src/testlib/qjunittestlogger.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testlib/qjunittestlogger.cpp b/src/testlib/qjunittestlogger.cpp index 34cb8b9a75..cea7fa8b14 100644 --- a/src/testlib/qjunittestlogger.cpp +++ b/src/testlib/qjunittestlogger.cpp @@ -224,7 +224,7 @@ void QJUnitTestLogger::leaveTestCase() void QJUnitTestLogger::addIncident(IncidentTypes type, const char *description, const char *file, int line) { - if (type == QAbstractTestLogger::Fail || type == QAbstractTestLogger::XPass) { + if (type == Fail || type == XPass) { auto failureType = [&]() { switch (type) { case QAbstractTestLogger::Fail: return "fail"; @@ -234,11 +234,11 @@ void QJUnitTestLogger::addIncident(IncidentTypes type, const char *description, }(); addFailure(QTest::LET_Failure, failureType, QString::fromUtf8(description)); - } else if (type == QAbstractTestLogger::XFail) { + } else if (type == XFail) { // Since XFAIL does not add a failure to the testlog in JUnit XML we add a // message, so we still have some information about the expected failure. - addMessage(QAbstractTestLogger::Info, QString::fromUtf8(description), file, line); - } else if (type == QAbstractTestLogger::Skip) { + addMessage(Info, QString::fromUtf8(description), file, line); + } else if (type == Skip) { auto skippedElement = new QTestElement(QTest::LET_Skipped); skippedElement->addAttribute(QTest::AI_Message, description); currentTestCase->addChild(skippedElement); @@ -287,7 +287,7 @@ void QJUnitTestLogger::addMessage(MessageTypes type, const QString &message, con Q_UNUSED(file); Q_UNUSED(line); - if (type == QAbstractTestLogger::QFatal) { + if (type == QFatal) { addFailure(QTest::LET_Error, "qfatal", message); return; } |