summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_cmptest.xunitxml
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@theqtcompany.com>2015-11-01 16:41:25 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2015-11-06 11:40:15 +0000
commit9626baaea98edc13236250fc4b92d461b80e3875 (patch)
treea3db37f73fdca71e133c307672b06ad153d6f85d /tests/auto/testlib/selftests/expected_cmptest.xunitxml
parentd8f41bdc2efa36dd9e2f80e23d7cb4874c019452 (diff)
Fix QCOMPARE with enum classes.
As these are strongly typed, they won't implicitly convert to int, so make sure to cast explicitly. Change-Id: Ic8daa31c528bbd8f399ab401d0963e13db191312 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_cmptest.xunitxml')
-rw-r--r--tests/auto/testlib/selftests/expected_cmptest.xunitxml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/expected_cmptest.xunitxml b/tests/auto/testlib/selftests/expected_cmptest.xunitxml
index fa970d4172..10918ce921 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="26" tests="16" name="tst_Cmptest">
+<testsuite errors="0" failures="27" tests="17" name="tst_Cmptest">
<properties>
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
@@ -14,6 +14,11 @@
Actual (Qt::ArrowCursor): ArrowCursor
Expected (Qt::BusyCursor) : BusyCursor" result="fail"/>
</testcase>
+ <testcase result="fail" name="compare_class_enums">
+ <failure message="Compared values are not the same
+ Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
+ Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2" result="fail"/>
+ </testcase>
<testcase result="pass" name="compare_boolfuncs"/>
<testcase result="pass" name="compare_pointerfuncs"/>
<testcase result="fail" name="compare_tostring">