From: Stephen Kelly Date: Tue, 24 Jul 2012 10:01:13 +0000 (+0200) Subject: Use a large core type for the QVariant::setValue test. X-Git-Tag: v5.0.0-beta1~629 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80cd5d2017342bc7674367fa418349f3f1eef798;p=profile%2Fivi%2Fqtbase.git Use a large core type for the QVariant::setValue test. The type needs to be large enough that QVariantIntegrator::CanUseInternalSpace is true. Change-Id: I311c44bedfebd946e41639975df206c27b6d55ca Reviewed-by: Olivier Goffart Reviewed-by: Jędrzej Nowacki --- diff --git a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp index 3a0b936..d8c6e25 100644 --- a/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp +++ b/tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp @@ -64,6 +64,8 @@ #include #include #include +#include + #include @@ -2990,8 +2992,8 @@ void tst_QVariant::toIntFromDouble() const void tst_QVariant::setValue() { - QTransform t; //we just take a value so that we're sure that it will be shared - QVariant v1 = t; + QJsonDocument t; //we just take a value so that we're sure that it will be shared + QVariant v1 = QVariant::fromValue(t); QVERIFY( v1.isDetached() ); QVariant v2 = v1; QVERIFY( !v1.isDetached() );