qt5base-lts/tests/auto/corelib/kernel
Rohan McGovern adfca27ac0 Fixed tst_qobject::property for clang
The test was failing at:

  QCOMPARE(property.userType(), qMetaTypeId<CustomType*>());

The CustomType* metatype was not registered before this part of the
test.

qMetaTypeId<T> will register the metatype for T before returning it if
it is not yet registered, while QMetaProperty::userType() returns 0 if
the metatype is not yet registered.  However, the order of evaluation of
these two expressions in the above statement is technically undefined.

Apparently, gcc evaluates the arguments in order from right to left,
allowing the test to pass, while clang evaluates the arguments in order
from left to right, causing the test to fail.

Change-Id: I5059556e860cec29b57c31e4e26f46cf9e6055da
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-02-09 10:45:38 +01:00
..
qcoreapplication Add the event loop quitlock feature to QtCore. 2012-01-31 23:22:15 +01:00
qeventloop Add the event loop quitlock feature to QtCore. 2012-01-31 23:22:15 +01:00
qmath Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetaobject Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetaobjectbuilder Initialize dynamic meta object extradata. 2012-02-08 09:53:23 +01:00
qmetaproperty Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetatype Detect incompatibilities in repeated type registration 2012-02-07 09:47:51 +01:00
qmimedata Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qobject Fixed tst_qobject::property for clang 2012-02-09 10:45:38 +01:00
qpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsignalmapper Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsocketnotifier Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtranslator Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvariant Introduce Q_DECLARE_OPAQUE_POINTER 2012-02-09 00:32:41 +01:00
qwineventnotifier Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
kernel.pro Add missing subdirectory to kernel.pro file. 2012-01-10 01:25:45 +01:00