forked from qt-creator/qt-creator
ExtensionSystem: Add missing check to autotest.
There was no check whether the plugins to be examined actually existed, meaning the autotest would erroneously succeed if they were not at the right location. Change-Id: Icd230ad7ecac9852a4ba0887e278fe9e098d084b Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -201,7 +201,9 @@ void tst_PluginManager::circularPlugins()
|
||||
{
|
||||
m_pm->setPluginPaths(QStringList() << pluginFolder(QLatin1String("circularplugins")));
|
||||
m_pm->loadPlugins();
|
||||
foreach (PluginSpec *spec, m_pm->plugins()) {
|
||||
QList<PluginSpec *> plugins = m_pm->plugins();
|
||||
QCOMPARE(plugins.count(), 3);
|
||||
foreach (PluginSpec *spec, plugins) {
|
||||
if (spec->name() == "plugin1") {
|
||||
QVERIFY(spec->hasError());
|
||||
QCOMPARE(spec->state(), PluginSpec::Resolved);
|
||||
|
||||
Reference in New Issue
Block a user