From 7f7c4c5b8391ce56d052452aec5a4687466f3231 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 5 Sep 2018 07:01:29 +0300 Subject: [PATCH] Call _set_abort_behavior on all compilers impersonating MSVC --- include/boost/core/lightweight_test.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 20d625e..0cecba0 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -47,7 +47,7 @@ public: test_result() : report_(false) , errors_(0) { -#if defined(BOOST_MSVC) || ( defined(_MSC_VER) && defined(__clang__) ) +#if defined(_MSC_VER) ::_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif }