[PATCH] D78114: [NFC, tsan] Update tsan tests expectation
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 17:18:22 PDT 2020
vitalybuka updated this revision to Diff 258206.
vitalybuka added a comment.
relax tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78114/new/
https://reviews.llvm.org/D78114
Files:
compiler-rt/test/tsan/Linux/double_race.cpp
compiler-rt/test/tsan/inlined_memcpy_race.cpp
compiler-rt/test/tsan/inlined_memcpy_race2.cpp
compiler-rt/test/tsan/memcmp_race.cpp
compiler-rt/test/tsan/memcpy_race.cpp
Index: compiler-rt/test/tsan/memcpy_race.cpp
===================================================================
--- compiler-rt/test/tsan/memcpy_race.cpp
+++ compiler-rt/test/tsan/memcpy_race.cpp
@@ -35,7 +35,7 @@
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 1 at [[ADDR]] by thread T2:
// CHECK: #0 {{(memcpy|memmove)}}
-// CHECK: #1 Thread2
+// CHECK: #{{[12]}} Thread2
// CHECK: Previous write of size 1 at [[ADDR]] by thread T1:
// CHECK: #0 {{(memcpy|memmove)}}
-// CHECK: #1 Thread1
+// CHECK: #{{[12]}} Thread1
Index: compiler-rt/test/tsan/memcmp_race.cpp
===================================================================
--- compiler-rt/test/tsan/memcmp_race.cpp
+++ compiler-rt/test/tsan/memcmp_race.cpp
@@ -36,7 +36,7 @@
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 1 at [[ADDR]] by thread T2:
// CHECK: #0 {{(memcpy|memmove)}}
-// CHECK: #1 Thread2
+// CHECK: #{{[12]}} Thread2
// CHECK: Previous read of size 1 at [[ADDR]] by thread T1:
// CHECK: #0 memcmp
-// CHECK: #1 Thread1
+// CHECK: #{{[12]}} Thread1
Index: compiler-rt/test/tsan/inlined_memcpy_race2.cpp
===================================================================
--- compiler-rt/test/tsan/inlined_memcpy_race2.cpp
+++ compiler-rt/test/tsan/inlined_memcpy_race2.cpp
@@ -31,7 +31,7 @@
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: #0 memset
-// CHECK: #1 MemSetThread
+// CHECK: #{{[12]}} MemSetThread
// CHECK: Previous write
// CHECK: #0 {{(memcpy|memmove)}}
-// CHECK: #1 MemMoveThread
+// CHECK: #{{[12]}} MemMoveThread
Index: compiler-rt/test/tsan/inlined_memcpy_race.cpp
===================================================================
--- compiler-rt/test/tsan/inlined_memcpy_race.cpp
+++ compiler-rt/test/tsan/inlined_memcpy_race.cpp
@@ -30,8 +30,7 @@
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: #0 memset
-// CHECK: #1 MemSetThread
+// CHECK: #{{[12]}} MemSetThread
// CHECK: Previous write
// CHECK: #0 {{(memcpy|memmove)}}
-// CHECK: #1 MemCpyThread
-
+// CHECK: #{{[12]}} MemCpyThread
Index: compiler-rt/test/tsan/Linux/double_race.cpp
===================================================================
--- compiler-rt/test/tsan/Linux/double_race.cpp
+++ compiler-rt/test/tsan/Linux/double_race.cpp
@@ -45,7 +45,7 @@
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 8 at {{.*}} by thread T1:
// CHECK: #0 memset
-// CHECK: #1 Thread
+// CHECK: #{{[12]}} Thread
// CHECK-NOT: bad PC passed to __tsan_symbolize_external
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 8 at {{.*}} by thread T1:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78114.258206.patch
Type: text/x-patch
Size: 2729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200417/4aa06942/attachment.bin>
More information about the llvm-commits
mailing list