Use _Exit(3) instead of abort() to avoid core dump

This commit is contained in:
Peter Dimov
2018-09-05 06:26:40 +03:00
parent d0a9206d6a
commit d8c0768788

View File

@ -55,7 +55,14 @@ public:
~test_result() {
if (!report_) {
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "main() should return report_errors()" << std::endl;
#if defined(_MSC_VER)
::_exit( 3 );
#elif 1
::_Exit( 3 );
#else
std::abort();
#endif
}
}