Commit 9552e13c authored by Bill King's avatar Bill King
Browse files

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.
parent 6d00ff37
......@@ -354,8 +354,11 @@ int main(int argc, char **argv)
// shutdown plugin manager on the exit
QObject::connect(&app, SIGNAL(aboutToQuit()), &pluginManager, SLOT(shutdown()));
// Do this after the event loop has started
// QTimer::singleShot(100, &pluginManager, SLOT(startTests()));
QTimer::singleShot(100, &pluginManager, SLOT(startTests()));
return app.exec();
......@@ -641,6 +641,8 @@ void PluginManager::startTests()
QTest::qExec(pluginSpec->plugin(), methods);
QTimer::singleShot(1, QCoreApplication::instance(), SLOT(quit()));
Supports Markdown
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