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>
24 lines
1.4 KiB
XML
24 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_TestLib" timestamp="@TEST_START_TIME@" hostname="@HOSTNAME@" tests="10" failures="1" errors="0" skipped="0" time="@TEST_DURATION@">
|
|
<properties>
|
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtBuild" value=""/>
|
|
</properties>
|
|
<testcase name="initTestCase" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="basics" classname="tst_TestLib" time="@TEST_DURATION@">
|
|
<failure type="fail" message="Compared QObject pointers are not the same">
|
|
<![CDATA[ Actual (QTest::testObject()): tst_TestLib/"TestObject"
|
|
Expected (nullptr) : (nullptr)]]>
|
|
</failure>
|
|
</testcase>
|
|
<testcase name="delays" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(zero)" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(self-qQNaN)" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(self-qInf)" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(infineg)" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(Sin(turn/4))" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="reals(Cos(turn/2))" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
<testcase name="cleanupTestCase" classname="tst_TestLib" time="@TEST_DURATION@"/>
|
|
</testsuite>
|