[ntcore] Change ntcore_test to just exit on tsan error (#8220)

In shutdown situations, calling FAIL() can deadlock in tsan.
This commit is contained in:
Peter Johnson
2025-09-08 13:57:32 -07:00
committed by GitHub
parent bd1dcc4358
commit e5b7613b78

View File

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