From: Mike Aizatsky Date: Thu, 28 Jan 2016 00:35:17 +0000 (+0000) Subject: [sancov] run sancov test on x86_64 linux only X-Git-Tag: llvmorg-3.9.0-rc1~15784 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4c48d1e156066d16c417f9025769058cdf6b6ae;p=platform%2Fupstream%2Fllvm.git [sancov] run sancov test on x86_64 linux only llvm-svn: 259006 --- 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(