exit application when running unit tests raised a system exception

This commit is contained in:
wmayer
2018-08-31 22:21:15 +02:00
parent 022653331f
commit fb1a0be846

View File

@@ -1037,6 +1037,9 @@ void MainWindow::delayedStartup()
try {
Base::Interpreter().runString(Base::ScriptFactory().ProduceScript("FreeCADTest"));
}
catch (const Base::SystemExitException&) {
throw;
}
catch (const Base::Exception& e) {
e.ReportException();
}