aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/memcpy_race.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/memcpy_race.cc')
-rw-r--r--test/tsan/memcpy_race.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tsan/memcpy_race.cc b/test/tsan/memcpy_race.cc
index d49577306d6c..4a098c0405fc 100644
--- a/test/tsan/memcpy_race.cc
+++ b/test/tsan/memcpy_race.cc
@@ -22,7 +22,7 @@ void *Thread2(void *x) {
int main() {
barrier_init(&barrier, 2);
- fprintf(stderr, "addr=%p\n", &data[5]);
+ print_address("addr=", 1, &data[5]);
pthread_t t[2];
pthread_create(&t[0], NULL, Thread1, NULL);
pthread_create(&t[1], NULL, Thread2, NULL);
@@ -34,8 +34,8 @@ int main() {
// CHECK: addr=[[ADDR:0x[0-9,a-f]+]]
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 1 at [[ADDR]] by thread T2:
-// CHECK: #0 memcpy
+// CHECK: #0 {{(memcpy|memmove)}}
// CHECK: #1 Thread2
// CHECK: Previous write of size 1 at [[ADDR]] by thread T1:
-// CHECK: #0 memcpy
+// CHECK: #0 {{(memcpy|memmove)}}
// CHECK: #1 Thread1