Define sanitizer callbacks that fail tests when triggered.
Chaos Ci / test (push) Successful in 3m1s
Chaos Ci / benchmark (push) Successful in 1m49s

This commit is contained in:
hashlag committed 2026-08-03 01:46:21 +03:00
1 parent 88bcbb5514
commit 2323020714
2 files changed
+23 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include <gtest/gtest.h>
extern "C"
{
void __ubsan_on_report()
{
FAIL() << "Encountered an undefined behavior sanitizer error";
}
void __asan_on_error()
{
FAIL() << "Encountered an address sanitizer error";
}
void __tsan_on_report()
{
FAIL() << "Encountered a thread sanitizer error";
}
} // extern "C"