[compiler-rt] fdf97bc - [test] Enable check-lsan on aarch64-*-linux

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 11:11:31 PDT 2021


Author: Fangrui Song
Date: 2021-03-23T11:11:26-07:00
New Revision: fdf97bc73891d6480bffc7bcfe4e2a55d61e8d9e

URL: https://github.com/llvm/llvm-project/commit/fdf97bc73891d6480bffc7bcfe4e2a55d61e8d9e
DIFF: https://github.com/llvm/llvm-project/commit/fdf97bc73891d6480bffc7bcfe4e2a55d61e8d9e.diff

LOG: [test] Enable check-lsan on aarch64-*-linux

`check-lsan` passed on an aarch64-*-linux machine.

Unsupport `many_tls_keys_pthread.cpp` for now: it requires GetTls to include
`specific_1stblock` and `specific` in `struct pthread`.

Differential Revision: https://reviews.llvm.org/D98985

Added: 
    

Modified: 
    compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
    compiler-rt/test/lsan/lit.common.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp b/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
index ecc577ac4c68..63a72481eca9 100644
--- a/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
+++ b/compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp
@@ -5,8 +5,9 @@
 // RUN: %env_lsan_opts=$LSAN_BASE:"use_tls=1" %run %t 2>&1
 // RUN: %env_lsan_opts="" %run %t 2>&1
 
-// Patch r303906 did not fix all the problems.
-// UNSUPPORTED: arm-linux,armhf-linux
+// On glibc, this requires the range returned by GetTLS to include
+// specific_1stblock and specific in `struct pthread`.
+// UNSUPPORTED: arm-linux, armhf-linux, aarch64
 
 // TSD on NetBSD does not use TLS
 // UNSUPPORTED: netbsd

diff  --git a/compiler-rt/test/lsan/lit.common.cfg.py b/compiler-rt/test/lsan/lit.common.cfg.py
index 6e012c06ab11..88c557549b38 100644
--- a/compiler-rt/test/lsan/lit.common.cfg.py
+++ b/compiler-rt/test/lsan/lit.common.cfg.py
@@ -76,7 +76,7 @@ def build_invocation(compile_flags):
 # LeakSanitizer tests are currently supported on
 # Android{aarch64, x86, x86_64}, x86-64 Linux, PowerPC64 Linux, arm Linux, mips64 Linux, s390x Linux and x86_64 Darwin.
 supported_android = config.android and config.target_arch in ['x86_64', 'i386', 'aarch64'] and 'android-thread-properties-api' in config.available_features
-supported_linux = (not config.android) and config.host_os == 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'riscv64', 'arm', 'armhf', 'armv7l', 's390x']
+supported_linux = (not config.android) and config.host_os == 'Linux' and config.host_arch in ['aarch64', 'x86_64', 'ppc64', 'ppc64le', 'mips64', 'riscv64', 'arm', 'armhf', 'armv7l', 's390x']
 supported_darwin = config.host_os == 'Darwin' and config.target_arch in ['x86_64']
 supported_netbsd = config.host_os == 'NetBSD' and config.target_arch in ['x86_64', 'i386']
 if not (supported_android or supported_linux or supported_darwin or supported_netbsd):


        


More information about the llvm-commits mailing list