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:
Asiri Rathnayake 2017-02-15 13:43:05 +00:00
parent 5c8e5f3722
commit d717ce580b
1 changed files with 1 additions and 1 deletions

View File

@ -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
//