[compiler-rt] 70af40b - [hwasan] Fix forward '[hwasan] Flush stderr/stdout in tests (#114083)'
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 13:14:37 PDT 2024
Author: Thurston Dang
Date: 2024-10-29T20:14:14Z
New Revision: 70af40ba74cf62fdaa3ae1d7db972c138655049f
URL: https://github.com/llvm/llvm-project/commit/70af40ba74cf62fdaa3ae1d7db972c138655049f
DIFF: https://github.com/llvm/llvm-project/commit/70af40ba74cf62fdaa3ae1d7db972c138655049f.diff
LOG: [hwasan] Fix forward '[hwasan] Flush stderr/stdout in tests (#114083)'
3754fc1e9af38951aa00181c0e8110174d3f94fd broke the build because subsequent checks depend on the line numbers
https://lab.llvm.org/buildbot/#/builders/174/builds/7534/steps/6/logs/FAIL__HWAddressSanitizer-x86_64__use-after-free_c
Added:
Modified:
compiler-rt/test/hwasan/TestCases/use-after-free.c
Removed:
################################################################################
diff --git a/compiler-rt/test/hwasan/TestCases/use-after-free.c b/compiler-rt/test/hwasan/TestCases/use-after-free.c
index b4b79875e8111e..fe4f8b32ea1006 100644
--- a/compiler-rt/test/hwasan/TestCases/use-after-free.c
+++ b/compiler-rt/test/hwasan/TestCases/use-after-free.c
@@ -32,11 +32,11 @@ int main() {
//
// CHECK: freed by thread {{.*}} here:
// CHECK: #0 {{.*}} in {{.*}}free{{.*}} {{.*}}hwasan_allocation_functions.cpp
- // CHECK: #1 {{.*}} in main {{.*}}use-after-free.c:[[@LINE-19]]
+ // CHECK: #1 {{.*}} in main {{.*}}use-after-free.c:[[@LINE-20]]
// CHECK: previously allocated by thread {{.*}} here:
// CHECK: #0 {{.*}} in {{.*}}malloc{{.*}} {{.*}}hwasan_allocation_functions.cpp
- // CHECK: #1 {{.*}} in main {{.*}}use-after-free.c:[[@LINE-24]]
+ // CHECK: #1 {{.*}} in main {{.*}}use-after-free.c:[[@LINE-25]]
// CHECK: Memory tags around the buggy address (one tag corresponds to 16 bytes):
// CHECK: =>{{.*}}[[MEM_TAG]]
// CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main
More information about the llvm-commits
mailing list