mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 05:17:22 +02:00
Use _Exit(3) instead of abort() to avoid core dump
This commit is contained in:
@ -55,7 +55,14 @@ public:
|
|||||||
~test_result() {
|
~test_result() {
|
||||||
if (!report_) {
|
if (!report_) {
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "main() should return report_errors()" << std::endl;
|
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "main() should return report_errors()" << std::endl;
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
::_exit( 3 );
|
||||||
|
#elif 1
|
||||||
|
::_Exit( 3 );
|
||||||
|
#else
|
||||||
std::abort();
|
std::abort();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user