From b4c48d1e156066d16c417f9025769058cdf6b6ae Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Thu, 28 Jan 2016 00:35:17 +0000 Subject: [PATCH] [sancov] run sancov test on x86_64 linux only llvm-svn: 259006 --- compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc | 1 + compiler-rt/test/lit.common.cfg | 3 +++ 2 files changed, 4 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc b/compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc index 98d78b9..2f32bee 100644 --- a/compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc +++ b/compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc @@ -1,4 +1,5 @@ // REQUIRES: has_sancovcc +// REQUIRES: x86_64-linux // RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t // RUN: rm -rf %T/coverage_html_report // RUN: mkdir -p %T/coverage_html_report diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg index f19cd36..d007536 100644 --- a/compiler-rt/test/lit.common.cfg +++ b/compiler-rt/test/lit.common.cfg @@ -72,6 +72,9 @@ config.environment['PATH'] = path if platform.system() == 'Windows' and '-win' in config.target_triple: config.environment['LIB'] = os.environ['LIB'] +if re.match(r'^x86_64.*-linux', config.target_triple): + config.available_features.add("x86_64-linux") + # Use ugly construction to explicitly prohibit "clang", "clang++" etc. # in RUN lines. config.substitutions.append( -- 2.7.4