diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-19 20:17:02 +0100 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2017-04-20 07:19:57 +0000 |
commit | 0794d61c822585530243f638687b8a75f0a15d0c (patch) | |
tree | b9e1f512a7bd47f8e26398cf256413e999a948f0 /tests/auto | |
parent | 126c4eae84fee0e5bc4e9c6db167d92e87b7f612 (diff) |
QMetaType: fix the test
8a375341cf7a7cf38ef427bc0c9f1abde05a471d added swap() to QJson* classes
and marked them shared-not-movable-until-qt6.
This change made QMetaType start reporting that QJson* classes were
movable; however, the test used QTypeInfo and not QTypeInfoQuery to
double check that information.
Port the test to QTypeInfoQuery.
Change-Id: I3227a70a8f24c0013257e180e9cb9cfebe9947f9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp index 143bf2f95d..b6106e8c9e 100644 --- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -713,8 +713,8 @@ void tst_QMetaType::flags_data() #define ADD_METATYPE_TEST_ROW(MetaTypeName, MetaTypeId, RealType) \ QTest::newRow(#RealType) << MetaTypeId \ - << bool(!QTypeInfo<RealType>::isStatic) \ - << bool(QTypeInfo<RealType>::isComplex) \ + << bool(QTypeInfoQuery<RealType>::isRelocatable) \ + << bool(QTypeInfoQuery<RealType>::isComplex) \ << bool(QtPrivate::IsPointerToTypeDerivedFromQObject<RealType>::Value) \ << bool(std::is_enum<RealType>::value); QT_FOR_EACH_STATIC_CORE_CLASS(ADD_METATYPE_TEST_ROW) |