Commit 377052bf authored by Christian Stenger's avatar Christian Stenger Committed by hjk

PluginManager: Fix compile for release builds

Issue was introduced with 273c3fa0

Change-Id: I09d3691c549cbca34d48725f092273e781af20ab
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 50a5056b
......@@ -869,6 +869,7 @@ void PluginManagerPrivate::deleteAll()
}
}
#ifdef WITH_TESTS
static QStringList testFunctions(const QMetaObject *metaObject)
{
QStringList testFunctions;
......@@ -949,7 +950,6 @@ void PluginManagerPrivate::startTests()
return;
}
#ifdef WITH_TESTS
foreach (const PluginManagerPrivate::TestSpec &testSpec, testSpecs) {
const PluginSpec * const pluginSpec = testSpec.pluginSpec;
if (!pluginSpec->plugin())
......@@ -973,8 +973,8 @@ void PluginManagerPrivate::startTests()
}
if (!testSpecs.isEmpty())
QTimer::singleShot(1, this, SLOT(exitWithNumberOfFailedTests()));
#endif
}
#endif
/*!
\internal
......
......@@ -150,7 +150,9 @@ private:
void stopAll();
void deleteAll();
#ifdef WITH_TESTS
void startTests();
#endif
};
} // namespace Internal
......
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