forked from qt-creator/qt-creator
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:
committed by
Christian Stenger
parent
c131160c67
commit
8d769e0949
@@ -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); });
|
||||
|
||||
Reference in New Issue
Block a user