aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Wen Voung <jvoung@google.com>2013-03-11 17:48:03 +0000
committerJan Wen Voung <jvoung@google.com>2013-03-11 17:48:03 +0000
commitf96df9083937e198721f0e1dbd21d882bb4413ae (patch)
treef666ff0b6624f06bee2c0ccf87a4a60beec0fc3a
parent695bbea5daa69bccf79b46e21b7a78695ab7b9d8 (diff)
Partly revert "Move clang tests that depend on llvm/ADT/Statistic.h to a subdir".
This reverts commit 176730, and uses "REQUIRES: asserts" instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176815 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/Stats/lit.local.cfg4
-rw-r--r--test/Analysis/objc-method-coverage.m (renamed from test/Analysis/Stats/objc-method-coverage.m)3
-rw-r--r--test/Analysis/stats.c (renamed from test/Analysis/Stats/stats.c)1
3 files changed, 3 insertions, 5 deletions
diff --git a/test/Analysis/Stats/lit.local.cfg b/test/Analysis/Stats/lit.local.cfg
deleted file mode 100644
index a36c70e00e..0000000000
--- a/test/Analysis/Stats/lit.local.cfg
+++ /dev/null
@@ -1,4 +0,0 @@
-config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s']
-
-if 'asserts' not in config.root.available_features:
- config.unsupported = True
diff --git a/test/Analysis/Stats/objc-method-coverage.m b/test/Analysis/objc-method-coverage.m
index cb66bff19b..489c19ba6c 100644
--- a/test/Analysis/Stats/objc-method-coverage.m
+++ b/test/Analysis/objc-method-coverage.m
@@ -1,3 +1,4 @@
+// REQUIRES: asserts
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats -fblocks %s 2>&1 | FileCheck %s
@interface I
int f() {
@@ -13,4 +14,4 @@ int f() {
// CHECK: ... Statistics Collected ...
// CHECK: 2 AnalysisConsumer - The # of functions and blocks analyzed (as top level with inlining turned on).
-// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks. \ No newline at end of file
+// CHECK: 100 AnalysisConsumer - The % of reachable basic blocks.
diff --git a/test/Analysis/Stats/stats.c b/test/Analysis/stats.c
index 6beadbeb41..5701dc71f5 100644
--- a/test/Analysis/Stats/stats.c
+++ b/test/Analysis/stats.c
@@ -1,3 +1,4 @@
+// REQUIRES: asserts
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-stats %s 2>&1 | FileCheck %s
void foo() {