summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-08-12 23:49:52 +0000
committerReid Kleckner <rnk@google.com>2015-08-12 23:49:52 +0000
commit3f3af2cf744e3f87f050551ae9712540bde929b0 (patch)
treea1e0e2fa23c0dbc1662789fb1c743c0218c10323 /compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc
parenta3191ef66bb8530cee38fe2828fabd26c66c9450 (diff)
downloadbcm5719-llvm-3f3af2cf744e3f87f050551ae9712540bde929b0.tar.gz
bcm5719-llvm-3f3af2cf744e3f87f050551ae9712540bde929b0.zip
[windows] Always use the lit shell on Windows, even if bash is present
Summary: This is consistent with LLVM and Clang. The lit shell isn't a complete bash implementation, but its behavior is more easily reproducible. This fixes some ubsan test failures. One ubsan test requires a shell currently, so I added "REQUIRES: shell", and the other doesn't work on Windows because it prints a stack trace and uses a linker that doesn't support DWARF. We can fix it eventually through other means. Reviewers: samsonov, pcc Subscribers: yaron.keren, filcab, llvm-commits Differential Revision: http://reviews.llvm.org/D11960 llvm-svn: 244837
Diffstat (limited to 'compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc')
-rw-r--r--compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc b/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc
index df6e835dd9d..76cfd509901 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc
+++ b/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc
@@ -1,5 +1,8 @@
// Test various levels of coverage
//
+// FIXME: Port the environment variable logic below for the lit shell.
+// REQUIRES: shell
+//
// RUN: mkdir -p %T/coverage-levels
// RUN: OPT=coverage=1:verbosity=1:coverage_dir=%T/coverage-levels
// RUN: %clangxx -fsanitize=shift -DGOOD_SHIFT=1 -O1 -fsanitize-coverage=func %s -o %t
OpenPOWER on IntegriCloud