forked from OSchip/llvm-project
Fix couple of test failures when using the LIBCXXABI_SILENT_TERMINATE mode.
When libcxxabi is built in LIBCXXABI_SILENT_TERMINATE mode, libcxx test suite reports two failures: std/depr/exception.unexpected/set.unexpected/get_unexpected.pass.cpp std/depr/exception.unexpected/set.unexpected/set_unexpected.pass.cpp This is because the default unexpected handler is set to std::abort instead of std::terminate which these tests expect. llvm-svn: 295175
This commit is contained in:
parent
5c8e5f3722
commit
d717ce580b
|
@ -90,7 +90,7 @@ static std::terminate_handler default_terminate_handler = demangling_terminate_h
|
|||
static std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
|
||||
#else
|
||||
static std::terminate_handler default_terminate_handler = std::abort;
|
||||
static std::terminate_handler default_unexpected_handler = std::abort;
|
||||
static std::terminate_handler default_unexpected_handler = std::terminate;
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue