diff --git a/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp b/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp index 87be90014d56e..dfeb8ad5c7b53 100644 --- a/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp @@ -26,14 +26,17 @@ bool ignore_free = false; extern "C" { WEAK_ON_APPLE void __sanitizer_free_hook(const volatile void *ptr) { - if (ptr == glob_ptr) + if (ptr == glob_ptr) { fprintf(stderr, "Free Hook\n"); + fflush(stderr); + } } WEAK_ON_APPLE int __sanitizer_ignore_free_hook(const volatile void *ptr) { if (ptr != glob_ptr) return 0; fprintf(stderr, ignore_free ? "Free Ignored\n" : "Free Respected\n"); + fflush(stderr); return ignore_free; } } // extern "C"