0528d9dca7
Add a test case for calling QEXPECT_FAIL in a data-driven test without passing a specific data tag for the expected failure, in which the expected failure should apply to the current data row. Change-Id: I70a6592de77b1718c3a749fd2216e66f8f312805 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
51 lines
1.9 KiB
XML
51 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="11" failures="2" tests="10" name="tst_ExpectFail">
|
|
<properties>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
</properties>
|
|
<testcase result="pass" name="initTestCase"/>
|
|
<testcase result="xfail" name="expectAndContinue">
|
|
<!-- message="begin" type="qdebug" -->
|
|
<!-- message="This should xfail" type="info" -->
|
|
<!-- message="after" type="qdebug" -->
|
|
</testcase>
|
|
<testcase result="xfail" name="expectAndAbort">
|
|
<!-- message="begin" type="qdebug" -->
|
|
<!-- message="This should xfail" type="info" -->
|
|
</testcase>
|
|
<testcase result="fail" name="expectTwice">
|
|
<failure message="Already expecting a fail" result="fail"/>
|
|
</testcase>
|
|
<testcase result="xfail" name="xfailWithQString">
|
|
<!-- message="A string" type="info" -->
|
|
<!-- message="Bug 5 (The message)" type="info" -->
|
|
</testcase>
|
|
<testcase result="xpass" name="xpass">
|
|
<failure message="'true' returned FALSE. ()" result="xpass"/>
|
|
</testcase>
|
|
<testcase result="xfail" name="dataDrivenTest">
|
|
<!-- tag="Abort" message="This test should xfail" type="info" -->
|
|
<!-- tag="Continue" message="This test should xfail" type="info" -->
|
|
</testcase>
|
|
<testcase result="pass" name="expectOnWrongRow"/>
|
|
<testcase result="xfail" name="expectOnAnyRow">
|
|
<!-- tag="first row" message="This test should xfail" type="info" -->
|
|
<!-- tag="second row" message="This test should xfail" type="info" -->
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<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]]>
|
|
</system-err>
|
|
</testsuite>
|