From fb1a0be84640372cb3fa82b8be391f2065cee532 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 31 Aug 2018 22:21:15 +0200 Subject: [PATCH] exit application when running unit tests raised a system exception --- src/Gui/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 1fb02ee7fd..68e2c1f9c7 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -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(); }