[llvm-branch-commits] [compiler-rt] [test][hwasan] Test function name in summaries (PR #77391)
Vitaly Buka via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 8 15:30:18 PST 2024
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/77391
>From 23bf2a98a428fa6a866f64e2499793734b1a97a9 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Mon, 8 Jan 2024 15:27:19 -0800
Subject: [PATCH 1/2] undo some failing cases
Created using spr 1.3.4
---
compiler-rt/test/hwasan/TestCases/halt-on-error.cpp | 6 +++---
compiler-rt/test/hwasan/TestCases/report-unmapped.cpp | 2 +-
compiler-rt/test/hwasan/TestCases/use-after-free.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp b/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
index f587ee0fcabd30..7666baf9de79de 100644
--- a/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
+++ b/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
@@ -26,15 +26,15 @@ int main() {
// COMMON: READ of size 4 at
// When instrumenting with callbacks, main is actually #1, and #0 is __hwasan_load4.
// COMMON: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-3]]
- // COMMON: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in SigTrap
+ // COMMON: SUMMARY: HWAddressSanitizer: tag-mismatch
// RECOVER: READ of size 1 at
// RECOVER: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-7]]
- // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in SigTrap
+ // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch
// RECOVER: READ of size 1 at
// RECOVER: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-11]]
- // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in SigTrap
+ // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch
// COMMON-NOT: tag-mismatch
}
diff --git a/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp b/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
index 1802e920f390a2..935cd71c8c9c96 100644
--- a/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
+++ b/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
@@ -36,4 +36,4 @@ int main(int argc, char **argv) {
// CHECK: Tags for short granules around
// Check that report is complete.
-// CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in SigTrap
+// CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch
diff --git a/compiler-rt/test/hwasan/TestCases/use-after-free.c b/compiler-rt/test/hwasan/TestCases/use-after-free.c
index e0afb767b05937..b3eed88600726c 100644
--- a/compiler-rt/test/hwasan/TestCases/use-after-free.c
+++ b/compiler-rt/test/hwasan/TestCases/use-after-free.c
@@ -38,6 +38,6 @@ int main() {
// CHECK: #1 {{.*}} in main {{.*}}use-after-free.c:[[@LINE-24]]
// CHECK: Memory tags around the buggy address (one tag corresponds to 16 bytes):
// CHECK: =>{{.*}}[[MEM_TAG]]
- // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in SigTrap
+ // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch
return r;
}
>From 3dc1e55b0a49a902cdb9abfdce3af9bb85489b70 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Mon, 8 Jan 2024 15:30:08 -0800
Subject: [PATCH 2/2] undo more
Created using spr 1.3.4
---
compiler-rt/test/hwasan/TestCases/halt-on-error.cpp | 6 +++---
compiler-rt/test/hwasan/TestCases/report-unmapped.cpp | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp b/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
index 7666baf9de79de..1a32e4bf4cc4b5 100644
--- a/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
+++ b/compiler-rt/test/hwasan/TestCases/halt-on-error.cpp
@@ -26,15 +26,15 @@ int main() {
// COMMON: READ of size 4 at
// When instrumenting with callbacks, main is actually #1, and #0 is __hwasan_load4.
// COMMON: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-3]]
- // COMMON: SUMMARY: HWAddressSanitizer: tag-mismatch
+ // COMMON: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in
// RECOVER: READ of size 1 at
// RECOVER: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-7]]
- // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch
+ // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in
// RECOVER: READ of size 1 at
// RECOVER: #{{.*}} in main {{.*}}halt-on-error.cpp:[[@LINE-11]]
- // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch
+ // RECOVER: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in
// COMMON-NOT: tag-mismatch
}
diff --git a/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp b/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
index 935cd71c8c9c96..a58e50a78d8750 100644
--- a/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
+++ b/compiler-rt/test/hwasan/TestCases/report-unmapped.cpp
@@ -36,4 +36,4 @@ int main(int argc, char **argv) {
// CHECK: Tags for short granules around
// Check that report is complete.
-// CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch
+// CHECK: SUMMARY: HWAddressSanitizer
More information about the llvm-branch-commits
mailing list