Skip to content

Commit 55afd5b

Browse files
committed
[sanitizer] Try to fix the test on powerpc bot
It silently fails with tsan. https://lab.llvm.org/buildbot/#/builders/72/builds/3257
1 parent 8f653ca commit 55afd5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
# include <stdlib.h>
1919

2020
// CHECK-COUNT-2: __sanitizer_get_dtls_size:
21-
size_t __sanitizer_get_dtls_size(const void *ptr) {
21+
size_t __sanitizer_get_dtls_size(const void *ptr)
22+
__attribute__((disable_sanitizer_instrumentation)) {
2223
fprintf(stderr, "__sanitizer_get_dtls_size: %p\n", ptr);
2324
return 0;
2425
}

0 commit comments

Comments
 (0)