[compiler-rt] 50dd922 - Revert "[asan] Flush stderr in test (#114084)"
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 16:48:03 PDT 2024
Author: Thurston Dang
Date: 2024-10-29T23:46:54Z
New Revision: 50dd9225f8b33a924970039772faeac03e0a5716
URL: https://github.com/llvm/llvm-project/commit/50dd9225f8b33a924970039772faeac03e0a5716
DIFF: https://github.com/llvm/llvm-project/commit/50dd9225f8b33a924970039772faeac03e0a5716.diff
LOG: Revert "[asan] Flush stderr in test (#114084)"
This reverts commit e205929399d9ee4782b2d8ef1b659f918bdfe7c2.
Reason: did not solve the QEMU bot issues (https://lab.llvm.org/buildbot/#/builders/139/builds/5552/steps/30/logs/stdio) and it shouldn't have been necessary anyway (https://github.com/llvm/llvm-project/pull/114084#issuecomment-2445513320)
Added:
Modified:
compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
Removed:
################################################################################
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 dfeb8ad5c7b53f..87be90014d56e8 100644
--- a/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
@@ -26,17 +26,14 @@ 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"
More information about the llvm-commits
mailing list