qt5base-lts/tests/auto/testlib/selftests/expected_testlib.tap
Friedemann Kleint ae02188233 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>
2021-05-26 11:02:48 +00:00

23 lines
519 B
Plaintext

TAP version 13
# tst_TestLib
ok 1 - initTestCase()
not ok 2 - basics()
---
# Compared QObject pointers are not the same
at: tst_TestLib::basics() (qtbase/tests/auto/testlib/selftests/testlib/tst_testlib.cpp:0)
file: qtbase/tests/auto/testlib/selftests/testlib/tst_testlib.cpp
line: 0
...
ok 3 - delays()
ok 4 - reals(zero)
ok 5 - reals(self-qQNaN)
ok 6 - reals(self-qInf)
ok 7 - reals(infineg)
ok 8 - reals(Sin(turn/4))
ok 9 - reals(Cos(turn/2))
ok 10 - cleanupTestCase()
1..10
# tests 10
# pass 9
# fail 1