[compiler-rt] 2d69c36 - [tsan] Consume leading zeroes in a test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 08:32:28 PDT 2024
Author: Vitaly Buka
Date: 2024-07-19T08:32:17-07:00
New Revision: 2d69c3628bb23a33e5fa36c6ec02fdc57c622dde
URL: https://github.com/llvm/llvm-project/commit/2d69c3628bb23a33e5fa36c6ec02fdc57c622dde
DIFF: https://github.com/llvm/llvm-project/commit/2d69c3628bb23a33e5fa36c6ec02fdc57c622dde.diff
LOG: [tsan] Consume leading zeroes in a test
Follow up to #98578
Added:
Modified:
compiler-rt/test/tsan/debug_alloc_stack.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/debug_alloc_stack.cpp b/compiler-rt/test/tsan/debug_alloc_stack.cpp
index 5deed49b18b28..70e9759f0af63 100644
--- a/compiler-rt/test/tsan/debug_alloc_stack.cpp
+++ b/compiler-rt/test/tsan/debug_alloc_stack.cpp
@@ -61,11 +61,11 @@ int main() {
fprintf(stderr, "thread os id = 0x%llx\n", thread_os_id);
// CHECK: thread os id = [[THREAD_OS_ID]]
fprintf(stderr, "%p\n", trace[0]);
- // CHECK: [[ALLOC_FRAME_0:0x[0-9a-f]+]]
+ // CHECK: 0x{{0*}}[[ALLOC_FRAME_0:[0-9a-f]+]]
fprintf(stderr, "%p\n", trace[1]);
- // CHECK: [[ALLOC_FRAME_1:0x[0-9a-f]+]]
+ // CHECK: 0x{{0*}}[[ALLOC_FRAME_1:[0-9a-f]+]]
fprintf(stderr, "%p\n", trace[2]);
- // CHECK: [[ALLOC_FRAME_2:0x[0-9a-f]+]]
+ // CHECK: 0x{{0*}}[[ALLOC_FRAME_2:[0-9a-f]+]]
pthread_create(&t, NULL, RaceThread, NULL);
barrier_wait(&barrier);
@@ -79,6 +79,6 @@ int main() {
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Location is heap block of size 10 at {{.*}} allocated by thread T1
-// CHECK: #0 [[ALLOC_FRAME_0]]
-// CHECK: #1 [[ALLOC_FRAME_1]] in alloc_func
-// CHECK: #2 [[ALLOC_FRAME_2]] in AllocThread
+// CHECK: #0 0x{{0*}}[[ALLOC_FRAME_0]]
+// CHECK: #1 0x{{0*}}[[ALLOC_FRAME_1]] in alloc_func
+// CHECK: #2 0x{{0*}}[[ALLOC_FRAME_2]] in AllocThread
More information about the llvm-commits
mailing list