a59bc6a6e4
The existing expectfail selftest did not test QEXPECT_FAIL with a data-driven test function. This commit adds such a test. Change-Id: I39fa9aa227b58779ce5268dd37bf55468e7269c5 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
38 lines
1.4 KiB
XML
38 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="9" failures="0" tests="6" 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="xfail" name="xfailWithQString">
|
|
<!-- message="A string" type="info" -->
|
|
<!-- message="Bug 5 (The message)" type="info" -->
|
|
</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="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]]>
|
|
</system-err>
|
|
</testsuite>
|