diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2015-02-10 19:53:38 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2015-02-10 19:53:38 +0000 |
| commit | 7dc8af5306c16fc844a5d8d703e64285469ab240 (patch) | |
| tree | 7a4085d7263c6c356e46a713ad37c7187f1f7254 | |
| parent | 440af7ecccbf8c4056c4ca9556b75a75b704b11e (diff) | |
| download | bcm5719-llvm-7dc8af5306c16fc844a5d8d703e64285469ab240.tar.gz bcm5719-llvm-7dc8af5306c16fc844a5d8d703e64285469ab240.zip | |
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
| -rw-r--r-- | clang/test/Analysis/crash-trace.c | 3 | ||||
| -rw-r--r-- | clang/test/Parser/crash-report.c | 3 | ||||
| -rw-r--r-- | clang/test/lit.cfg | 3 | ||||
| -rw-r--r-- | clang/test/lit.site.cfg.in | 1 |
4 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/Analysis/crash-trace.c b/clang/test/Analysis/crash-trace.c index 8b61b75172f..5fca8d88c61 100644 --- a/clang/test/Analysis/crash-trace.c +++ b/clang/test/Analysis/crash-trace.c @@ -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); diff --git a/clang/test/Parser/crash-report.c b/clang/test/Parser/crash-report.c index 92bc9ba6db6..840a2a593fa 100644 --- a/clang/test/Parser/crash-report.c +++ b/clang/test/Parser/crash-report.c @@ -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 diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 4200a4ae0dc..51e1e4fdbc7 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -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") diff --git a/clang/test/lit.site.cfg.in b/clang/test/lit.site.cfg.in index 1f0b9600d67..332bcec1487 100644 --- a/clang/test/lit.site.cfg.in +++ b/clang/test/lit.site.cfg.in @@ -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 |

