[sancov] run sancov test on x86_64 linux only
authorMike Aizatsky <aizatsky@chromium.org>
Thu, 28 Jan 2016 00:35:17 +0000 (00:35 +0000)
committerMike Aizatsky <aizatsky@chromium.org>
Thu, 28 Jan 2016 00:35:17 +0000 (00:35 +0000)
llvm-svn: 259006

compiler-rt/test/asan/TestCases/Linux/coverage_html_report.cc
compiler-rt/test/lit.common.cfg

index 98d78b9..2f32bee 100644 (file)
@@ -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
index f19cd36..d007536 100644 (file)
@@ -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(