67c877562b
The attributes are, like the elements, maintained in reverse order in the underlying QTestCoreList, so we need to iterate them backwards when printing out the resulting XML to reflect the order they were added. This results in e.g.: <testcase name="passingBenchmark" result="pass"> Instead of: <testcase result="pass" name="passingBenchmark"> Change-Id: Ic2eeab8de05ffedd0c41977358d5b40ff77878b1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
68 lines
2.9 KiB
XML
68 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_ExpectFail" tests="14" failures="6" errors="13">
|
|
<properties>
|
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtBuild" value=""/>
|
|
</properties>
|
|
<testcase name="initTestCase" result="pass"/>
|
|
<testcase name="xfailAndContinue" result="xfail">
|
|
<!-- type="qdebug" message="begin" -->
|
|
<!-- type="info" message="This should xfail" -->
|
|
<!-- type="qdebug" message="after" -->
|
|
</testcase>
|
|
<testcase name="xfailAndAbort" result="xfail">
|
|
<!-- type="qdebug" message="begin" -->
|
|
<!-- type="info" message="This should xfail" -->
|
|
</testcase>
|
|
<testcase name="xfailTwice" result="fail">
|
|
<failure result="fail" message="Already expecting a fail"/>
|
|
</testcase>
|
|
<testcase name="xfailWithQString" result="xfail">
|
|
<!-- type="info" message="A string" -->
|
|
<!-- type="info" message="Bug 5 (The message)" -->
|
|
</testcase>
|
|
<testcase name="xfailDataDrivenWithQVerify" result="xfail">
|
|
<!-- type="info" message="This test should xfail" tag="Abort" -->
|
|
<!-- type="info" message="This test should xfail" tag="Continue" -->
|
|
</testcase>
|
|
<testcase name="xfailDataDrivenWithQCompare" result="xfail">
|
|
<!-- type="info" message="This test should xfail" tag="Abort" -->
|
|
<!-- type="info" message="This test should xfail" tag="Continue" -->
|
|
</testcase>
|
|
<testcase name="xfailOnWrongRow" result="pass"/>
|
|
<testcase name="xfailOnAnyRow" result="xfail">
|
|
<!-- type="info" message="This test should xfail" tag="first row" -->
|
|
<!-- type="info" message="This test should xfail" tag="second row" -->
|
|
</testcase>
|
|
<testcase name="xfailWithoutVerify" result="fail">
|
|
<failure result="fail" message="QEXPECT_FAIL was called without any subsequent verification statements" tag="first row"/>
|
|
<failure result="fail" message="QEXPECT_FAIL was called without any subsequent verification statements" tag="second row"/>
|
|
</testcase>
|
|
<testcase name="xpass" result="xpass">
|
|
<failure result="xpass" message="'true' returned TRUE unexpectedly. ()"/>
|
|
</testcase>
|
|
<testcase name="xpassDataDrivenWithQVerify" result="xpass">
|
|
<failure result="xpass" message="'true' returned TRUE unexpectedly. ()" tag="XPass"/>
|
|
</testcase>
|
|
<testcase name="xpassDataDrivenWithQCompare" result="xpass">
|
|
<failure result="xpass" message="QCOMPARE(1, 1) returned TRUE unexpectedly." tag="XPass"/>
|
|
</testcase>
|
|
<testcase name="cleanupTestCase" result="pass"/>
|
|
<system-err>
|
|
<![CDATA[begin]]>
|
|
<![CDATA[This should xfail]]>
|
|
<![CDATA[after]]>
|
|
<![CDATA[begin]]>
|
|
<![CDATA[This should xfail]]>
|
|
<![CDATA[A string]]>
|
|
<![CDATA[Bug 5 (The message)]]>
|
|
<![CDATA[This test should xfail]]>
|
|
<![CDATA[This test should xfail]]>
|
|
<![CDATA[This test should xfail]]>
|
|
<![CDATA[This test should xfail]]>
|
|
<![CDATA[This test should xfail]]>
|
|
<![CDATA[This test should xfail]]>
|
|
</system-err>
|
|
</testsuite>
|