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++) {