92e696b4ba
For built-in types, this is a compile-time assert - we should not have any types in Qt for which we have neither debug streaming nor a QTest::toString specialization implemented. A build of most of Qt submodules passes with this change, after minor modifications to some tests. We cannot declare QSizeHint::Policy as a metatype after the QMetaType has already been instantiated for it, and the QDebug stream operator for QElaspedTimer needs to be correctly declared within the namespace. Add a self-test function for a custom type, and update reference files of the self-test. Task-number: QTBUG-104867 Pick-to: 6.4 Change-Id: I2936db5933f4589fce45f47cf2f3224ed614d8c9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
18 lines
780 B
Plaintext
18 lines
780 B
Plaintext
********* Start testing of tst_TestLib *********
|
|
Config: Using QtTest library
|
|
PASS : tst_TestLib::initTestCase()
|
|
FAIL! : tst_TestLib::basics() Compared QObject pointers are not the same
|
|
Actual (QTest::testObject()): tst_TestLib/"TestObject"
|
|
Expected (nullptr) : (nullptr)
|
|
Loc: [qtbase/tests/auto/testlib/selftests/testlib/tst_testlib.cpp(0)]
|
|
PASS : tst_TestLib::delays()
|
|
PASS : tst_TestLib::reals(zero)
|
|
PASS : tst_TestLib::reals(self-qQNaN)
|
|
PASS : tst_TestLib::reals(self-qInf)
|
|
PASS : tst_TestLib::reals(infineg)
|
|
PASS : tst_TestLib::reals(Sin(turn/4))
|
|
PASS : tst_TestLib::reals(Cos(turn/2))
|
|
PASS : tst_TestLib::cleanupTestCase()
|
|
Totals: 9 passed, 1 failed, 0 skipped, 0 blacklisted, 0ms
|
|
********* Finished testing of tst_TestLib *********
|