From 176baa955af33acf4913ba94f0d050e8686e362c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 19 Nov 2024 17:41:31 -0800 Subject: [PATCH] tst_QMetaType: remove defined() test This was testing implementation details that aren't that important any more and are about to be removed. Change-Id: I222a463f7fff9ff2de2cfffd77d8cec77510a57e Reviewed-by: Fabian Kosmale --- .../kernel/qmetatype/tst_qmetatype.cpp | 22 ------------------- .../corelib/kernel/qmetatype/tst_qmetatype.h | 1 - 2 files changed, 23 deletions(-) diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp index e7c45ac3dae..9f302163f26 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -358,28 +358,6 @@ void tst_QMetaType::registerGadget(const char *name, const QList{meta, [](QMetaObject *ptr){ ::free(ptr); }}); } -void tst_QMetaType::defined() -{ - QCOMPARE(int(QMetaTypeId2::Defined), 1); - QCOMPARE(int(QMetaTypeId2::Defined), 0); - QCOMPARE(int(QMetaTypeId2::Defined), 1); - QCOMPARE(int(QMetaTypeId2::Defined), 0); - QCOMPARE(int(QMetaTypeId2::Defined), 1); - QCOMPARE(int(QMetaTypeId2::Defined), 1); - QCOMPARE(int(QMetaTypeId2::Defined), 1); - QVERIFY(!QMetaTypeId2::Defined); - QVERIFY(!QMetaTypeId2::Defined); - QVERIFY(int(QMetaTypeId2::Defined)); - QVERIFY(!QMetaTypeId2::Defined); - QVERIFY(!QMetaTypeId2::Defined); - QVERIFY(!QMetaTypeId2::Defined); - QVERIFY(!QMetaTypeId2::Defined); - - // registered with Q_DECLARE_METATYPE - QVERIFY(QMetaTypeId2>::Defined); - QVERIFY(QMetaTypeId2*>::Defined); -} - struct Bar { Bar() diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h index bcd2fe2def0..6f218bb0651 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.h @@ -44,7 +44,6 @@ class tst_QMetaType: public QObject QList propList; private slots: - void defined(); #if QT_CONFIG(thread) void threadSafety(); #endif