Skip to content

Commit 7afd956

Browse files
committed
[compiler-rt][memprof] Disambiguate checks for __tls_get_addr in output
TestCases/stress_dtls.c was failing when we ran memprof tests for the first time. The test checks that __tls_get_addr is not in the output for the last run when it is possible for the interceptor __interceptor___tls_get_addr to be in the output from stack dumps. The test actually intends to check that the various __tls_get_addr reports don't get emitted when intercept_tls_get_addr=0. This updates the test to also check for the following `:` and preceding `==` which should ignore the __interceptor___tls_get_addr interceptor. Differential Revision: https://reviews.llvm.org/D111192
1 parent ab7d421 commit 7afd956

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler-rt/test/memprof/TestCases/stress_dtls.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
// RUN: %env_memprof_opts=log_path=stderr:verbosity=2 %run %t 10 2 2>&1 | FileCheck %s
1111
// RUN: %env_memprof_opts=log_path=stderr:verbosity=2:intercept_tls_get_addr=1 %run %t 10 2 2>&1 | FileCheck %s
1212
// RUN: %env_memprof_opts=log_path=stderr:verbosity=2:intercept_tls_get_addr=0 %run %t 10 2 2>&1 | FileCheck %s --check-prefix=CHECK0
13-
// CHECK: __tls_get_addr
13+
// CHECK: ==__tls_get_addr:
1414
// CHECK: Creating thread 0
15-
// CHECK: __tls_get_addr
15+
// CHECK: ==__tls_get_addr:
1616
// CHECK: Creating thread 1
17-
// CHECK: __tls_get_addr
17+
// CHECK: ==__tls_get_addr:
1818
// CHECK: Creating thread 2
19-
// CHECK: __tls_get_addr
19+
// CHECK: ==__tls_get_addr:
2020
// CHECK: Creating thread 3
21-
// CHECK: __tls_get_addr
21+
// CHECK: ==__tls_get_addr:
2222
// Make sure that TLS slots don't leak
2323
// CHECK-NOT: num_live_dtls 5
2424
//
25-
// CHECK0-NOT: __tls_get_addr
25+
// CHECK0-NOT: ==__tls_get_addr:
2626
/*
2727
cc=your-compiler
2828

0 commit comments

Comments
 (0)