forked from qt-creator/qt-creator
Pluginmanager: Test if there are tests to run, if so, then quit when done.
Double testing, only enable the codeblock when tests are found to be run, also, only send the quit message if there are tests found to be run.
This commit is contained in:
@@ -641,6 +641,8 @@ void PluginManager::startTests()
|
||||
}
|
||||
QTest::qExec(pluginSpec->plugin(), methods);
|
||||
}
|
||||
if(!d->testSpecs.isEmpty())
|
||||
QTimer::singleShot(1, QCoreApplication::instance(), SLOT(quit()));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user