mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user