r200291 - Fix this test and don't run it in ASan bootstrap

Alexey Samsonov samsonov at google.com
Mon Jan 27 22:59:32 PST 2014


Author: samsonov
Date: Tue Jan 28 00:59:32 2014
New Revision: 200291

URL: http://llvm.org/viewvc/llvm-project?rev=200291&view=rev
Log:
Fix this test and don't run it in ASan bootstrap

Modified:
    cfe/trunk/test/Index/annotate-deep-statements.cpp
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Index/annotate-deep-statements.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/annotate-deep-statements.cpp?rev=200291&r1=200290&r2=200291&view=diff
==============================================================================
--- cfe/trunk/test/Index/annotate-deep-statements.cpp (original)
+++ cfe/trunk/test/Index/annotate-deep-statements.cpp Tue Jan 28 00:59:32 2014
@@ -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()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=200291&r1=200290&r2=200291&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Tue Jan 28 00:59:32 2014
@@ -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")





More information about the cfe-commits mailing list