Commit 54cb7fef authored by Christian Stenger's avatar Christian Stenger

AutoTest: Delete framework if it cannot get registered

Change-Id: Ib55cb2cced5eefbb44f554994e0e9cd9a8ea24f7
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 8cba5803
......@@ -70,7 +70,7 @@ bool TestFrameworkManager::registerTestFramework(ITestFramework *framework)
{
QTC_ASSERT(framework, return false);
Core::Id id = Core::Id(Constants::FRAMEWORK_PREFIX).withSuffix(framework->name());
QTC_ASSERT(!m_registeredFrameworks.contains(id), return false);
QTC_ASSERT(!m_registeredFrameworks.contains(id), delete framework; return false);
// TODO check for unique priority before registering
qCDebug(LOG) << "Registering" << id;
m_registeredFrameworks.insert(id, framework);
......
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