summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_expectfail.xunitxml
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-01-12 13:16:44 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-13 01:41:14 +0100
commitfa078158920d40a8f39ab509521faa58b27f3749 (patch)
treec58d1937f790264d8a2c4e8a789fda6fd4399a91 /tests/auto/testlib/selftests/expected_expectfail.xunitxml
parentced306d403bf2f8d5ca838a279b73d028a96db03 (diff)
Improve coverage of expectfail selftest.
Add a test for the case where QEXPECT_FAIL is called twice in a row without an intervening verification step, which is supposed to result in a failure. Change-Id: Ie004652a76a2c35c2679945670ff5561e8f5b62e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_expectfail.xunitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_expectfail.xunitxml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/expected_expectfail.xunitxml b/tests/auto/testlib/selftests/expected_expectfail.xunitxml
index 6d3642a63b..e93cb03318 100644
--- a/tests/auto/testlib/selftests/expected_expectfail.xunitxml
+++ b/tests/auto/testlib/selftests/expected_expectfail.xunitxml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="9" failures="1" tests="7" name="tst_ExpectFail">
+<testsuite errors="9" failures="2" tests="8" name="tst_ExpectFail">
<properties>
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
@@ -14,6 +14,9 @@
<!-- 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" -->