diff --git a/compiler-rt/test/asan/TestCases/Linux/syscalls.cpp b/compiler-rt/test/asan/TestCases/Linux/syscalls.cpp --- a/compiler-rt/test/asan/TestCases/Linux/syscalls.cpp +++ b/compiler-rt/test/asan/TestCases/Linux/syscalls.cpp @@ -17,6 +17,6 @@ __sanitizer_syscall_pre_recvmsg(0, buf - 1, 0); // CHECK: AddressSanitizer: stack-buffer-{{.*}}erflow // CHECK: READ of size {{.*}} at {{.*}} thread T0 - // CHECK: #0 {{.*}} in __sanitizer_syscall{{.*}}recvmsg + // CHECK: {{#[0-9]+ .*}} in __sanitizer_syscall{{.*}}recvmsg return 0; } diff --git a/compiler-rt/test/asan/TestCases/Posix/bcmp_test.cpp b/compiler-rt/test/asan/TestCases/Posix/bcmp_test.cpp --- a/compiler-rt/test/asan/TestCases/Posix/bcmp_test.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/bcmp_test.cpp @@ -12,7 +12,7 @@ char a2[] = {1, static_cast(2 * argc), 3, 4}; int res = bcmp(a1, a2, 4 + argc); // BOOM // CHECK: AddressSanitizer: stack-buffer-overflow - // CHECK: {{#1.*bcmp}} - // CHECK: {{#2.*main}} + // CHECK: {{#[0-9]+ .*bcmp}} + // CHECK: {{#[0-9]+ .*main}} return res; } diff --git a/compiler-rt/test/asan/TestCases/memcmp_test.cpp b/compiler-rt/test/asan/TestCases/memcmp_test.cpp --- a/compiler-rt/test/asan/TestCases/memcmp_test.cpp +++ b/compiler-rt/test/asan/TestCases/memcmp_test.cpp @@ -11,7 +11,7 @@ char a2[] = {1, static_cast(2*argc), 3, 4}; int res = memcmp(a1, a2, 4 + argc); // BOOM // CHECK: AddressSanitizer: stack-buffer-overflow - // CHECK: {{#1.*memcmp}} - // CHECK: {{#2.*main}} + // CHECK: {{#[0-9]+ .*memcmp}} + // CHECK: {{#[0-9]+ .*main}} return res; }