diff options
-rw-r--r-- | test/Index/annotate-deep-statements.cpp | 4 | ||||
-rw-r--r-- | test/lit.cfg | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/Index/annotate-deep-statements.cpp b/test/Index/annotate-deep-statements.cpp index 79f2d39ae5..c0a55f25e4 100644 --- a/test/Index/annotate-deep-statements.cpp +++ b/test/Index/annotate-deep-statements.cpp @@ -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()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() diff --git a/test/lit.cfg b/test/lit.cfg index 7f2d9eaf87..3978946e9a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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") |