]> granicus.if.org Git - clang/commitdiff
Check for backtraces in tests which are verifying pretty stack traces from a crashing...
authorPete Cooper <peter_cooper@apple.com>
Tue, 10 Feb 2015 19:53:38 +0000 (19:53 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 10 Feb 2015 19:53:38 +0000 (19:53 +0000)
PrettyStackTrace now requires the ENABLE_BACKTRACES option.  We need to check for that here or these tests fail llvm-lit.

Reviewed by chandlerc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228735 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/crash-trace.c
test/Parser/crash-report.c
test/lit.cfg
test/lit.site.cfg.in

index 8b61b75172f41d80ac7cdaa07345cf2e0a5387f1..5fca8d88c619dc1cf3203de003d7555d4349306e 100644 (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);
 
index 92bc9ba6db6ff70fa30f175d0041da07e780ded7..840a2a593fa05b77262d891e9015aaf004db246a 100644 (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
index 4200a4ae0dc5834b0d7283d1c909127dd8aeb376..51e1e4fdbc7d0ab4436d1775b815bd40206d331f 100644 (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")
index 1f0b9600d67d8be7443b0237fb6107b53a154c92..332bcec14874ef74a776be8284a16a006dd03dba 100644 (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