summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2016-05-19 13:35:13 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-05-27 22:55:22 +0000
commit9d2f7be4e65595241db3cf5135b69bd9e4ce6a30 (patch)
tree428f8339738cd3c76f303e3e4488705cc3c969f8 /vcl
parent7b9c4f56a0555d3d3a1f8fe5dd2a099354172583 (diff)
shortcut the signal handler during batch test
Change-Id: I7848555743e8d54e755dc82cbf0148eeed54110f Reviewed-on: https://gerrit.libreoffice.org/25178 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svmain.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 2b315b2606d0..69ab53bfc90a 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -95,6 +95,8 @@
using namespace ::com::sun::star;
+static bool g_bIsLeanException;
+
static bool isInitVCL();
oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo* pInfo)
@@ -102,7 +104,7 @@ oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo
static volatile bool bIn = false;
// if we crash again, bail out immediately
- if ( bIn )
+ if ( bIn || g_bIsLeanException)
return osl_Signal_ActCallNextHdl;
ExceptionCategory nVCLException = ExceptionCategory::NONE;
@@ -302,6 +304,7 @@ bool InitVCL()
pSVData->maGDIData.mpScreenFontCache = new ImplFontCache;
pSVData->maGDIData.mpGrfConverter = new GraphicConverter;
+ g_bIsLeanException = getenv("LO_LEAN_EXCEPTION") ? true : false;
// Set exception handler
pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, nullptr);