aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/global_race2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/global_race2.cc')
-rw-r--r--test/tsan/global_race2.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/tsan/global_race2.cc b/test/tsan/global_race2.cc
index 4ab2842e7eef..95dff1997808 100644
--- a/test/tsan/global_race2.cc
+++ b/test/tsan/global_race2.cc
@@ -11,9 +11,7 @@ void *Thread(void *a) {
int main() {
barrier_init(&barrier, 2);
- fprintf(stderr, "addr2=");
- print_address(&x);
- fprintf(stderr, "\n");
+ print_address("addr2=", 1, &x);
pthread_t t;
pthread_create(&t, 0, Thread, 0);
x = 0;
@@ -23,5 +21,5 @@ int main() {
// CHECK: addr2=[[ADDR2:0x[0-9,a-f]+]]
// CHECK: WARNING: ThreadSanitizer: data race
-// CHECK: Location is global 'x' of size 4 at [[ADDR2]] ({{.*}}+0x{{[0-9,a-f]+}})
+// CHECK: Location is global 'x' {{(of size 4 )?}}at [[ADDR2]] ({{.*}}+0x{{[0-9,a-f]+}})