aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/global_race3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/global_race3.cc')
-rw-r--r--test/tsan/global_race3.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/tsan/global_race3.cc b/test/tsan/global_race3.cc
index 1531d7830f78..e0d59d284420 100644
--- a/test/tsan/global_race3.cc
+++ b/test/tsan/global_race3.cc
@@ -16,9 +16,7 @@ void *Thread(void *a) {
int main() {
barrier_init(&barrier, 2);
- fprintf(stderr, "addr3=");
- print_address(XXX::YYY::ZZZ);
- fprintf(stderr, "\n");
+ print_address("addr3=", 1, XXX::YYY::ZZZ);
pthread_t t;
pthread_create(&t, 0, Thread, 0);
XXX::YYY::ZZZ[0] = 0;
@@ -28,4 +26,4 @@ int main() {
// CHECK: addr3=[[ADDR3:0x[0-9,a-f]+]]
// CHECK: WARNING: ThreadSanitizer: data race
-// CHECK: Location is global 'XXX::YYY::ZZZ' of size 40 at [[ADDR3]] ({{.*}}+0x{{[0-9,a-f]+}})
+// CHECK: Location is global 'XXX::YYY::ZZZ' {{(of size 40 )?}}at [[ADDR3]] ({{.*}}+0x{{[0-9,a-f]+}})