forked from qt-creator/qt-creator
PluginManager: Fix compile for release builds
Issue was introduced with 273c3fa0af
Change-Id: I09d3691c549cbca34d48725f092273e781af20ab
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user