Commit 8d769e09 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Christian Stenger

Plugin Tests: Remove QTC_ASSERT

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

Change-Id: I793825640174ed8e3d07bf9393afe69818e19db0
Reviewed-by: default avatarChristian Stenger <>
parent c131160c
......@@ -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); });
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment