diff --git a/ntcore/src/test/native/cpp/main.cpp b/ntcore/src/test/native/cpp/main.cpp index d0202f2c1b..a0813aacb8 100644 --- a/ntcore/src/test/native/cpp/main.cpp +++ b/ntcore/src/test/native/cpp/main.cpp @@ -30,6 +30,7 @@ void __asan_on_error(void) { FAIL() << "Encountered an address sanitizer error"; } void __tsan_on_report(void) { - FAIL() << "Encountered a thread sanitizer error"; + std::puts("Encountered a thread sanitizer error"); + std::_Exit(EXIT_FAILURE); } } // extern "C"