qt5base-lts/tests/auto/corelib/plugin/qpluginloader
Thiago Macieira cafb02911a Make sure that the reference count for plugins is kept correctly
For systems where the Unix signature checker isn't enabled (read: Mac
and Windows), QPluginLoader must actually load the plugin to query for
the metadata. On Mac it even tried to keep the library loaded to avoid
unloading and reloading again when the user calls load().

However, that plus the fact that it was calling load_sys() (on Mac)
meant that it would bypass the reference count checking. And on all
Unix, if a library-that-wasnt-a-plugin was already loaded by way of a
QLibrary, it would have an effect of unloading said library.

So remove the "caching" of the library. We should instead invest time to
write a proper Mach-O binary decoder.

Task-number: QTBUG-29776
Change-Id: Iebbddabe60047aafedeced21f26a170f59656757
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
2013-02-27 07:09:18 +01:00
..
almostplugin Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
elftest Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
lib Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
theplugin Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
tst QPluginLoader: fix loading of plugins with a relative file name 2012-12-04 18:38:41 +01:00
.gitignore Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
empty.json Use new plugin system in plugin autotest. 2012-02-23 16:38:45 +01:00
qpluginloader.pro Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
tst_qpluginloader.cpp Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00