testlib: Don't report blacklisted tests as failures in JUnit reporter
We don't produce <failure> elements for them, so we shouldn't include them in the total count of failures. In the future we might produce <skipped> elements instead, but for now remove the incorrect increment. Pick-to: 6.2 Change-Id: Ia89a5cdaf79f6aa2f92be53180112c40ad6da2c6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
84a93d94ac
commit
eb4fb9fa32
@ -240,14 +240,12 @@ void QJUnitTestLogger::addIncident(IncidentTypes type, const char *description,
|
|||||||
typeBuf = "bpass";
|
typeBuf = "bpass";
|
||||||
break;
|
break;
|
||||||
case QAbstractTestLogger::BlacklistedFail:
|
case QAbstractTestLogger::BlacklistedFail:
|
||||||
++failureCounter;
|
|
||||||
typeBuf = "bfail";
|
typeBuf = "bfail";
|
||||||
break;
|
break;
|
||||||
case QAbstractTestLogger::BlacklistedXPass:
|
case QAbstractTestLogger::BlacklistedXPass:
|
||||||
typeBuf = "bxpass";
|
typeBuf = "bxpass";
|
||||||
break;
|
break;
|
||||||
case QAbstractTestLogger::BlacklistedXFail:
|
case QAbstractTestLogger::BlacklistedXFail:
|
||||||
++failureCounter;
|
|
||||||
typeBuf = "bxfail";
|
typeBuf = "bxfail";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<testsuite name="tst_Blacklisted" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="7" failures="2" errors="0" skipped="1" time="@TEST_DURATION@">
|
<testsuite name="tst_Blacklisted" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="7" failures="0" errors="0" skipped="1" time="@TEST_DURATION@">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
||||||
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user