Skip to content

Commit 1c1d806

Browse files
thurstondNoumanAmir657
authored andcommitted
Revert "[asan] Flush stderr in test (llvm#114084)"
This reverts commit e205929. 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 (llvm#114084 (comment))
1 parent 6219f38 commit 1c1d806

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,14 @@ bool ignore_free = false;
2626

2727
extern "C" {
2828
WEAK_ON_APPLE void __sanitizer_free_hook(const volatile void *ptr) {
29-
if (ptr == glob_ptr) {
29+
if (ptr == glob_ptr)
3030
fprintf(stderr, "Free Hook\n");
31-
fflush(stderr);
32-
}
3331
}
3432

3533
WEAK_ON_APPLE int __sanitizer_ignore_free_hook(const volatile void *ptr) {
3634
if (ptr != glob_ptr)
3735
return 0;
3836
fprintf(stderr, ignore_free ? "Free Ignored\n" : "Free Respected\n");
39-
fflush(stderr);
4037
return ignore_free;
4138
}
4239
} // extern "C"

0 commit comments

Comments
 (0)