Make clear why QTestLog::addB?XFail() don't add to counters
This reverts commit 904617dfb83f39a6a379635b64fea6fcd00f241a and makes clear to future readers why that wouldn't be a sensible change. Update the test's data, eliminating a case of duplicate counting that was caused by the reverted commit. Task-number: QTBUG-95661 Change-Id: Ice6d3ab06ca171e0d6eb0fac757f1ab774e229f0 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 7af79ba09148dbfe5c1fc8b130d564dcca7ae4b3)
This commit is contained in:
parent
73fc1f93e8
commit
e69ebaccf0
@ -1,6 +1,6 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Copyright (C) 2021 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtTest module of the Qt Toolkit.
|
||||
@ -334,6 +334,8 @@ void QTestLog::addXFail(const char *msg, const char *file, int line)
|
||||
QTEST_ASSERT(msg);
|
||||
QTEST_ASSERT(file);
|
||||
|
||||
// Will be counted in addPass() if we get there.
|
||||
|
||||
FOREACH_TEST_LOGGER
|
||||
logger->addIncident(QAbstractTestLogger::XFail, msg, file, line);
|
||||
}
|
||||
@ -386,7 +388,7 @@ void QTestLog::addBXFail(const char *msg, const char *file, int line)
|
||||
QTEST_ASSERT(msg);
|
||||
QTEST_ASSERT(file);
|
||||
|
||||
++QTest::blacklists;
|
||||
// Will be counted in addBPass() if we get there.
|
||||
|
||||
FOREACH_TEST_LOGGER
|
||||
logger->addIncident(QAbstractTestLogger::BlacklistedXFail, msg, file, line);
|
||||
|
Loading…
x
Reference in New Issue
Block a user