qt5base-lts/tests/auto/corelib/kernel
Olivier Goffart d4cdc45426 Fix QMetaMethod::invoke and automatic type registration
This was simply not working for two reasons:
 - The index passed to QMetaObject::metacall was not right (there was an offset
   because of the return type)
 - If the registration succeeded, the arguments were not even initialized.

The tests in tst_moc always called QMetaMethod::parameterType before calling invoke,
which was properly registering the type. So this was not seen in the tests before.

[ChangeLog][QtCore][QMetaMethod] Fixed crash in invoke() with QueuedConnection and
types whose metatype gets automatically registered.

Task-number: QTBUG-60185
Change-Id: I4247628484214fba0a8acc1813ed8f112f59c888
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-04-22 11:25:49 +00:00
..
qcoreapplication Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qdeadlinetimer Increase the resolution for QDeadlineTimer unit test 2016-10-26 03:16:26 +00:00
qelapsedtimer 50 ms isn't enough for the CI, so increase to 100 ms 2017-02-15 08:09:57 +00:00
qeventdispatcher Updated license headers 2016-01-21 18:55:18 +00:00
qeventloop Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qmath Updated license headers 2016-01-21 18:55:18 +00:00
qmetaenum Updated license headers 2016-01-21 18:55:18 +00:00
qmetamethod macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qmetaobject Fix QMetaMethod::invoke and automatic type registration 2017-04-22 11:25:49 +00:00
qmetaobjectbuilder macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qmetaproperty Updated license headers 2016-01-21 18:55:18 +00:00
qmetatype QMetaType: fix the test 2017-04-20 07:19:57 +00:00
qmimedata Updated license headers 2016-01-21 18:55:18 +00:00
qobject tst_QObject: Test if the new connect style works with multiple inheritance 2017-03-14 13:55:36 +00:00
qpointer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qsharedmemory Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qsignalblocker Updated license headers 2016-01-21 18:55:18 +00:00
qsignalmapper Updated license headers 2016-01-21 18:55:18 +00:00
qsocketnotifier Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qsystemsemaphore Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qtimer Blacklist tst_QTimer::remainingTime() on Windows and macOS 2017-02-14 13:30:12 +00:00
qtranslator Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
qvariant QVariant: implement QByteArray ↔ QUuid conversion 2017-04-14 12:54:21 +00:00
qwineventnotifier Updated license headers 2016-01-21 18:55:18 +00:00
kernel.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00