summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-03 21:00:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-04 22:08:36 +0100
commit6a49f78b36243ba1ed1dbf2f9bd893c7a660a983 (patch)
tree5469edba3855c1a694674e38dcc5eeb712908348 /test
parentfc26ea9e0e8cd4873ddd1f5736d7fed071f5e3e2 (diff)
silence coverity#1421122 Uncaught exception
Change-Id: I371951b0e5a0f8c6fe796ff94dc60e07944c3f0f Reviewed-on: https://gerrit.libreoffice.org/45758 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/source/vclbootstrapprotector.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/source/vclbootstrapprotector.cxx b/test/source/vclbootstrapprotector.cxx
index 786e3774be83..cf6341737919 100644
--- a/test/source/vclbootstrapprotector.cxx
+++ b/test/source/vclbootstrapprotector.cxx
@@ -28,9 +28,18 @@ public:
private:
virtual ~Protector() override {
- DeInitVCL();
- // for the 6 tests that use it
- comphelper::ThreadPool::getSharedOptimalPool().shutdown();
+#if defined(__COVERITY__)
+ try {
+#endif
+ DeInitVCL();
+ // for the 6 tests that use it
+ comphelper::ThreadPool::getSharedOptimalPool().shutdown();
+#if defined(__COVERITY__)
+ } catch (const std::exception& e) {
+ SAL_WARN("vcl.app", "Fatal exception: " << e.what());
+ std::terminate();
+ }
+#endif
}
virtual bool protect(