summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/expected_cmptest.xml
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-02-22 20:29:32 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-04-08 05:38:33 +0000
commit1ed8a7bff503aacf55f7f880ddaad461ea15e5e1 (patch)
tree06b264813602be5a9c442b3ba395e3b7227943a2 /tests/auto/testlib/selftests/expected_cmptest.xml
parent3f41e8a2f51698d690a6b1f6a1f4acfe13ff50af (diff)
QTest: support nullptr in QCOMPARE
This allows to write QCOMPARE(ptr, nullptr); instead of QVERIFY(ptr); Task-number: QTBUG-49973 Change-Id: I6e1327d4327bcf17bd9b59de4352fdcaae98ac27 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_cmptest.xml')
-rw-r--r--tests/auto/testlib/selftests/expected_cmptest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/expected_cmptest.xml b/tests/auto/testlib/selftests/expected_cmptest.xml
index f45d9ba1da..2eddfa67d9 100644
--- a/tests/auto/testlib/selftests/expected_cmptest.xml
+++ b/tests/auto/testlib/selftests/expected_cmptest.xml
@@ -35,6 +35,10 @@
<Incident type="pass" file="" line="0" />
<Duration msecs="0"/>
</TestFunction>
+<TestFunction name="compare_to_nullptr">
+<Incident type="pass" file="" line="0" />
+ <Duration msecs="0"/>
+</TestFunction>
<TestFunction name="compare_pointerfuncs">
<Incident type="pass" file="" line="0" />
<Duration msecs="0"/>