]> granicus.if.org Git - clang/commitdiff
Fix this test and don't run it in ASan bootstrap
authorAlexey Samsonov <samsonov@google.com>
Tue, 28 Jan 2014 06:59:32 +0000 (06:59 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 28 Jan 2014 06:59:32 +0000 (06:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200291 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/annotate-deep-statements.cpp
test/lit.cfg

index 79f2d39ae526683efbaf2bb0de627a78342e71d9..c0a55f25e49dba2633f1407543cb9aaaddffd482 100644 (file)
@@ -4,13 +4,13 @@
 // Check that we don't get stack overflow trying to annotate an extremely deep AST.
 
 // AddressSanitizer increases stack usage.
-// XFAIL: asan
+// REQUIRES: not_asan
 
 struct S {
   S &operator()();
 };
 
-// CHECK: Identifier: "foo" [11:6 - 11:9] FunctionDecl=foo:11:6 (Definition)
+// CHECK: Identifier: "foo" {{\[}}[[@LINE+1]]:6 - [[@LINE+1]]:9] FunctionDecl=foo:[[@LINE+1]]:6 (Definition)
 void foo() {
   S s;
   s()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
index 7f2d9eaf8725a938ce029b42b92f3e3d321de164..3978946e9a91c1652e142c31a378eaf5cc6b5436 100644 (file)
@@ -371,6 +371,8 @@ if lit.util.which('xmllint'):
 # Sanitizers.
 if config.llvm_use_sanitizer == "Address":
     config.available_features.add("asan")
+else:
+    config.available_features.add("not_asan")
 if (config.llvm_use_sanitizer == "Memory" or
         config.llvm_use_sanitizer == "MemoryWithOrigins"):
     config.available_features.add("msan")