diff --git a/libcxx/test/support/assert_macros.h b/libcxx/test/support/assert_macros.h --- a/libcxx/test/support/assert_macros.h +++ b/libcxx/test/support/assert_macros.h @@ -65,7 +65,7 @@ [[noreturn]] void test_log_error(const char* condition, const char* file, int line, std::string&& message) { const char* msg = condition ? "Assertion failure: " : "Unconditional failure:"; std::fprintf(stderr, "%s%s %s %d\n%s", msg, condition, file, line, message.c_str()); - exit(EXIT_FAILURE); + std::abort(); } inline void test_fail(const char* file, int line, std::string&& message) {