[asan] Disable tests more selectively.

Add "target-arch+host-os" to the feature list to enable disabling the
tests I committed in r279614 and r279880 more selectively.

llvm-svn: 279918
This commit is contained in:
Akira Hatanaka 2016-08-27 16:06:36 +00:00
parent 26709df81d
commit 0b2628df1a
3 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
// RUN: %env_asan_opts=symbolize=0 not %run %t 2>&1 | %asan_symbolize | FileCheck %s
// XFAIL: arm-linux-gnueabi
// XFAIL: armv7l-unknown-linux-gnueabihf
// UNSUPPORTED: x86_64h-apple,x86_64-apple
// UNSUPPORTED: x86_64h-darwin,x86_64-darwin
#if !defined(SHARED_LIB)
#include <dlfcn.h>

View File

@ -104,6 +104,7 @@ if target_arch:
config.available_features.add(target_arch + '-target-arch')
if target_arch in ['x86_64', 'i386', 'i686']:
config.available_features.add('x86-target-arch')
config.available_features.add(target_arch + '-' + config.host_os.lower())
compiler_rt_debug = getattr(config, 'compiler_rt_debug', False)
if not compiler_rt_debug:

View File

@ -1,6 +1,6 @@
// RUN: %clangxx -O0 %s -o %t
// RUN: %env_tool_opts=strip_path_prefix=/TestCases/ %run %t 2>&1 | FileCheck %s
// REQUIRES: x86_64-target-arch
// UNSUPPORTED: i386-darwin
//
// Tests __sanitizer_symbolize_pc.
#include <stdio.h>