Files
chaos/ChaosTests/SanCallbacks.cpp
hashlag 2323020714
Chaos Ci / test (push) Successful in 3m1s
Chaos Ci / benchmark (push) Successful in 1m49s
Define sanitizer callbacks that fail tests when triggered.
2026-08-03 01:46:21 +03:00

22 lines
320 B
C++

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