Plugin Tests: Remove QTC_ASSERT

If there is no plugin object, then the plugin was not loaded.

Change-Id: I793825640174ed8e3d07bf9393afe69818e19db0
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-02-04 16:08:12 +01:00
committed by Christian Stenger
parent c131160c67
commit 8d769e0949

View File

@@ -1081,7 +1081,8 @@ void PluginManagerPrivate::startTests()
foreach (const PluginManagerPrivate::TestSpec &testSpec, testSpecs) {
IPlugin *plugin = testSpec.pluginSpec->plugin();
QTC_ASSERT(plugin, continue);
if (!plugin)
continue; // plugin not loaded
const QList<QObject *> testObjects = plugin->createTestObjects();
ExecuteOnDestruction deleteTestObjects([&]() { qDeleteAll(testObjects); });