diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-19 10:25:45 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-26 11:02:48 +0000 |
commit | ae021882330abc5f6fbaadca290e6e5670c89028 (patch) | |
tree | 99821d2caae31319e00a89a5ecf858e38ebf4f6e /tests/auto/testlib/selftests/expected_cmptest.lightxml | |
parent | 25a7034d78aeb12726a1052d64c0aa3314a1f69d (diff) |
QTestlib: Add formatting for QObject * in QCOMPARE
Output object name and class in QCOMPARE(). This should help
to debug flaky QWidget tests that for example check on focusWidget().
[ChangeLog][QtTestLib] QCOMPARE() now reports QObject * values by class and objectName().
Task-number: QTBUG-64446
Change-Id: Ife04e89bba04fc78d077c8f0f07af17a17c9cf8c
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/expected_cmptest.lightxml')
-rw-r--r-- | tests/auto/testlib/selftests/expected_cmptest.lightxml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/expected_cmptest.lightxml b/tests/auto/testlib/selftests/expected_cmptest.lightxml index f87a3b3d9a..cd4837e96f 100644 --- a/tests/auto/testlib/selftests/expected_cmptest.lightxml +++ b/tests/auto/testlib/selftests/expected_cmptest.lightxml @@ -109,6 +109,14 @@ </Incident> <Duration msecs="0"/> </TestFunction> +<TestFunction name="compareQObjects"> +<Incident type="fail" file="qtbase/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp" line="0"> + <Description><![CDATA[Compared QObject pointers are not the same + Actual (&object1): QObject/"object1" + Expected (&object2): QObject/"object2"]]></Description> +</Incident> + <Duration msecs="0"/> +</TestFunction> <TestFunction name="compareQStringLists"> <Incident type="pass" file="" line="0"> <DataTag><![CDATA[empty lists]]></DataTag> |