diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Coverage/html-diagnostics.c | 2 | ||||
-rw-r--r-- | clang/test/Tooling/lit.local.cfg | 2 | ||||
-rw-r--r-- | clang/test/lit.cfg | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Coverage/html-diagnostics.c b/clang/test/Coverage/html-diagnostics.c index 410ee2acd5f..c7489f82dd7 100644 --- a/clang/test/Coverage/html-diagnostics.c +++ b/clang/test/Coverage/html-diagnostics.c @@ -2,6 +2,8 @@ // RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t %s // RUN: cat %t/*.html | FileCheck %s +// REQUIRES: staticanalyzer + // Because of the glob (*.html) // REQUIRES: shell diff --git a/clang/test/Tooling/lit.local.cfg b/clang/test/Tooling/lit.local.cfg new file mode 100644 index 00000000000..da2a68b378c --- /dev/null +++ b/clang/test/Tooling/lit.local.cfg @@ -0,0 +1,2 @@ +if config.root.clang_staticanalyzer == 0: + config.unsupported = True diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 11e8e0b1427..b5c5628a580 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -334,6 +334,10 @@ for pattern in [r"\bFileCheck\b", # Set available features we allow tests to conditionalize on. # +# Enabled/disabled features +if config.clang_staticanalyzer != 0: + config.available_features.add("staticanalyzer") + # As of 2011.08, crash-recovery tests still do not pass on FreeBSD. if platform.system() not in ['FreeBSD']: config.available_features.add('crash-recovery') |