summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_cmptest.xunitxml
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-12-13 17:26:36 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-14 02:40:17 +0100
commit9bc546e4920af554011adab10e15624f9a012bf8 (patch)
tree1f6265350fc9680ab35169be10a82b09a41a53cb /tests/auto/testlib/selftests/expected_cmptest.xunitxml
parenta9ad8886fe25276ea6e81e191392d4c90d207759 (diff)
Add testlib selftest for QStringList comparison.
The (disabled) alive selftest contained a test for the QStringList specialization of the QTest::qCompare template. This test is unrelated to the rest of the alive selftest, so move it to the cmptest selftest, where QCOMPARE is tested. Change-Id: Ic6f0e491dd3b3ce8b4ca1d49666a099815575eaa Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_cmptest.xunitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_cmptest.xunitxml19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/expected_cmptest.xunitxml b/tests/auto/testlib/selftests/expected_cmptest.xunitxml
index 01bfda8d01..8ce2dc92d5 100644
--- a/tests/auto/testlib/selftests/expected_cmptest.xunitxml
+++ b/tests/auto/testlib/selftests/expected_cmptest.xunitxml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite errors="0" failures="4" tests="5" name="tst_Cmptest">
+<testsuite errors="0" failures="9" tests="6" name="tst_Cmptest">
<properties>
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
@@ -21,6 +21,23 @@
Actual (actual): QVariant(PhonyClass,&lt;value not representable as string&gt;)
Expected (expected): QVariant(PhonyClass,&lt;value not representable as string&gt;)" result="fail"/>
</testcase>
+ <testcase result="fail" name="compareQStringLists">
+ <failure message="Compared QStringLists differ at index 2.
+ Actual (opA) : &apos;string3&apos;
+ Expected (opB) : &apos;DIFFERS&apos;" result="fail"/>
+ <failure message="Compared QStringLists differ at index 2.
+ Actual (opA) : &apos;string3&apos;
+ Expected (opB) : &apos;DIFFERS&apos;" result="fail"/>
+ <failure message="Compared QStringLists have different sizes.
+ Actual (opA) size : &apos;2&apos;
+ Expected (opB) size: &apos;1&apos;" result="fail"/>
+ <failure message="Compared QStringLists have different sizes.
+ Actual (opA) size : &apos;12&apos;
+ Expected (opB) size: &apos;1&apos;" result="fail"/>
+ <failure message="Compared QStringLists have different sizes.
+ Actual (opA) size : &apos;1&apos;
+ Expected (opB) size: &apos;12&apos;" result="fail"/>
+ </testcase>
<testcase result="pass" name="cleanupTestCase"/>
<system-err/>
</testsuite>