forked from qt-creator/qt-creator
Tests: Emit coreAboutToClose() before exiting
Now address sanitizer will not show false positives. Change-Id: Ieeb4dc31697920ed1ca542f5647f4cb0b23a29ab Task-number: QTCREATORBUG-14713 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -323,6 +323,10 @@ ICore::ICore(MainWindow *mainwindow)
|
||||
// Save settings once after all plugins are initialized:
|
||||
connect(PluginManager::instance(), SIGNAL(initializationDone()),
|
||||
this, SLOT(saveSettings()));
|
||||
connect(PluginManager::instance(), &PluginManager::testsFinished, [this] (int failedTests) {
|
||||
emit coreAboutToClose();
|
||||
QCoreApplication::exit(failedTests);
|
||||
});
|
||||
connect(m_mainwindow, SIGNAL(newItemDialogRunningChanged()),
|
||||
this, SIGNAL(newItemDialogRunningChanged()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user