Check for backtraces in tests which are verifying pretty stack traces from a crashing clang.

PrettyStackTrace now requires the ENABLE_BACKTRACES option.  We need to check for that here or these tests fail llvm-lit.

Reviewed by chandlerc

llvm-svn: 228735
This commit is contained in:
Pete Cooper 2015-02-10 19:53:38 +00:00
parent 440af7eccc
commit 7dc8af5306
4 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,8 @@
// REQUIRES: crash-recovery
// FIXME: CHECKs might be incompatible to win32.
// REQUIRES: shell
// Stack traces also require back traces.
// REQUIRES: shell backtrace
void clang_analyzer_crash(void);

View File

@ -2,7 +2,8 @@
// REQUIRES: crash-recovery
// FIXME: CHECKs might be incompatible to win32.
// REQUIRES: shell
// Stack traces also require back traces.
// REQUIRES: shell backtrace
#prag\
ma clang __debug crash

View File

@ -464,6 +464,9 @@ if config.llvm_use_sanitizer == "Undefined":
else:
config.available_features.add("not_ubsan")
if config.enable_backtrace == "1":
config.available_features.add("backtrace")
# Check if we should run long running tests.
if lit_config.params.get("run_long_tests", None) == "true":
config.available_features.add("long_tests")

View File

@ -18,6 +18,7 @@ config.clang_arcmt = @ENABLE_CLANG_ARCMT@
config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@
config.clang_examples = @ENABLE_CLANG_EXAMPLES@
config.enable_shared = @ENABLE_SHARED@
config.enable_backtrace = "@ENABLE_BACKTRACES@"
config.host_arch = "@HOST_ARCH@"
# Support substitution of the tools and libs dirs with user parameters. This is