summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-02-19 13:25:12 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2019-02-20 18:18:36 +0000
commit904617dfb83f39a6a379635b64fea6fcd00f241a (patch)
treece020555fad553f5bf9bde5c0d588724babb29d5
parentee8a5f4917d98a26f8dedd6802eac754d748b227 (diff)
Add missing increment of blacklisted tests for BXFAIL case
The counter is just how many tests were blacklisted, regardless of their success or otherwise. Skipping its increment for BXFAIL is apt to introduce noise in our tracking of how many tests are blacklisted. Change-Id: I1dd74e5f6619121c21d8741be7bc4e2d1cb43fa9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/testlib/qtestlog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp
index 3285a6d8a7..c3e7385217 100644
--- a/src/testlib/qtestlog.cpp
+++ b/src/testlib/qtestlog.cpp
@@ -470,6 +470,8 @@ void QTestLog::addBXFail(const char *msg, const char *file, int line)
QTEST_ASSERT(msg);
QTEST_ASSERT(file);
+ ++QTest::blacklists;
+
QTest::TestLoggers::addIncident(QAbstractTestLogger::BlacklistedXFail, msg, file, line);
}