From 8d4f1bb4afb05d832d20339ad18e7028cd55eb8c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 5 Sep 2018 20:23:13 +0300 Subject: [PATCH] Revert to always using std::abort instead of the platform-specific _exit/_Exit --- include/boost/core/lightweight_test.hpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 2fa329f..bfffcfb 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -55,14 +55,7 @@ public: ~test_result() { if (!report_) { BOOST_LIGHTWEIGHT_TEST_OSTREAM << "main() should return report_errors()" << std::endl; - -#if defined(_MSC_VER) - ::_exit( 3 ); -#elif defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) std::abort(); -#else - ::_Exit( 3 ); -#endif } }