From 4578414a2c7f327bf0dc4f0343a2c226ded71614 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 28 Oct 2020 09:41:48 -0700 Subject: [PATCH] tst: winfsp-tests: WINFSP_TESTS_EXCEPTION_FILTER_DISABLE --- tst/winfsp-tests/winfsp-tests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tst/winfsp-tests/winfsp-tests.c b/tst/winfsp-tests/winfsp-tests.c index 602f1e2f..eb1312c8 100644 --- a/tst/winfsp-tests/winfsp-tests.c +++ b/tst/winfsp-tests/winfsp-tests.c @@ -252,7 +252,9 @@ int main(int argc, char *argv[]) atexit(exiting); signal(SIGABRT, abort_handler); - SetUnhandledExceptionFilter(UnhandledExceptionHandler); +#pragma warning(suppress: 4996) + if (0 == getenv("WINFSP_TESTS_EXCEPTION_FILTER_DISABLE")) + SetUnhandledExceptionFilter(UnhandledExceptionHandler); for (int argi = 1; argc > argi; argi++) {