Skip to content

Commit 8d982e5

Browse files
authored
[test][hwasan] Test function name in summaries #77391 (#77397)
Push #77391 into the main.
1 parent 4147b72 commit 8d982e5

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

compiler-rt/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main() {
1414
// CHECK: ERROR: HWAddressSanitizer: invalid alignment requested in aligned_alloc: 17
1515
// CHECK: {{#0 0x.* in .*}}{{aligned_alloc|memalign}}
1616
// CHECK: {{#1 0x.* in main .*aligned_alloc-alignment.cpp:}}[[@LINE-3]]
17-
// CHECK: SUMMARY: HWAddressSanitizer: invalid-aligned-alloc-alignment
17+
// CHECK: SUMMARY: HWAddressSanitizer: invalid-aligned-alloc-alignment {{.*}} in aligned_alloc
1818

1919
printf("pointer after failed aligned_alloc: %zd\n", (size_t)p);
2020
// CHECK-NULL: pointer after failed aligned_alloc: 0

compiler-rt/test/hwasan/TestCases/Linux/pvalloc-overflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ int main(int argc, char *argv[]) {
3939
// CHECK: {{ERROR: HWAddressSanitizer: pvalloc parameters overflow: size .* rounded up to system page size .* cannot be represented in type size_t}}
4040
// CHECK: {{#0 0x.* in .*pvalloc}}
4141
// CHECK: {{#1 0x.* in main .*pvalloc-overflow.cpp:}}
42-
// CHECK: SUMMARY: HWAddressSanitizer: pvalloc-overflow
42+
// CHECK: SUMMARY: HWAddressSanitizer: pvalloc-overflow {{.*}} in pvalloc
4343

4444
// CHECK-NULL: errno: 12

compiler-rt/test/hwasan/TestCases/Posix/posix_memalign-alignment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main() {
1111
// CHECK: ERROR: HWAddressSanitizer: invalid alignment requested in posix_memalign: 17
1212
// CHECK: {{#0 0x.* in .*posix_memalign}}
1313
// CHECK: {{#1 0x.* in main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
14-
// CHECK: SUMMARY: HWAddressSanitizer: invalid-posix-memalign-alignment
14+
// CHECK: SUMMARY: HWAddressSanitizer: invalid-posix-memalign-alignment {{.*}} in posix_memalign
1515

1616
printf("pointer after failed posix_memalign: %zd\n", (size_t)p);
1717
// CHECK-NULL: pointer after failed posix_memalign: 42

compiler-rt/test/hwasan/TestCases/allocator_returns_null.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ int main(int argc, char **argv) {
8787
}
8888

8989
// CHECK-mCRASH: malloc:
90-
// CHECK-mCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
90+
// CHECK-mCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in malloc
9191
// CHECK-cCRASH: calloc:
92-
// CHECK-cCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
92+
// CHECK-cCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in calloc
9393
// CHECK-coCRASH: calloc-overflow:
94-
// CHECK-coCRASH: SUMMARY: HWAddressSanitizer: calloc-overflow
94+
// CHECK-coCRASH: SUMMARY: HWAddressSanitizer: calloc-overflow {{.*}} in calloc
9595
// CHECK-rCRASH: realloc:
96-
// CHECK-rCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
96+
// CHECK-rCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in realloc
9797
// CHECK-mrCRASH: realloc-after-malloc:
98-
// CHECK-mrCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
98+
// CHECK-mrCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in realloc
9999
// CHECK-nCRASH: new:
100-
// CHECK-nCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
100+
// CHECK-nCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in operator new
101101
// CHECK-nCRASH-OOM: new:
102-
// CHECK-nCRASH-OOM: SUMMARY: HWAddressSanitizer: out-of-memory
102+
// CHECK-nCRASH-OOM: SUMMARY: HWAddressSanitizer: out-of-memory {{.*}} in operator new
103103
// CHECK-nnCRASH: new-nothrow:
104-
// CHECK-nnCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big
104+
// CHECK-nnCRASH: SUMMARY: HWAddressSanitizer: allocation-size-too-big {{.*}} in operator new
105105

106106
// CHECK-mNULL: malloc:
107107
// CHECK-mNULL: errno: 12

0 commit comments

Comments
 (0)