Skip to content

Commit

Permalink
[test] Precisely disable flaky sanitizer tests on clang-ppc64le-redhat
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Feb 26, 2022
1 parent 1b1f8d6 commit 274ec42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/lsan/lit.common.cfg.py
Expand Up @@ -74,9 +74,9 @@ def build_invocation(compile_flags):
config.substitutions.append( ("%clangxx_lsan ", build_invocation(clang_lsan_cxxflags)) )

# 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.
# Android{aarch64, x86, x86_64}, x86-64 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 ['aarch64', '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', '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):
Expand Down
Expand Up @@ -7,6 +7,3 @@ def getRoot(config):

if root.host_os not in ['Linux']:
config.unsupported = True
# FIXME https://github.com/llvm/llvm-project/issues/54084
if root.host_arch in ['ppc64', 'ppc64le']:
config.unsupported = True
4 changes: 4 additions & 0 deletions compiler-rt/test/sanitizer_common/lit.common.cfg.py
Expand Up @@ -81,3 +81,7 @@ def build_invocation(compile_flags):

if config.host_os == 'NetBSD':
config.substitutions.insert(0, ('%run', config.netbsd_noaslr_prefix))

# FIXME https://github.com/llvm/llvm-project/issues/54084
if config.host_arch in ['ppc64', 'ppc64le']:
config.unsupported = True

0 comments on commit 274ec42

Please sign in to comment.