[Tests] Disable refactoring/ConvertAsync in ASAN

ASAN detected stack-use-after-scope errors. Disable tests while fixing.

rdar://problem/73984220
This commit is contained in:
Rintaro Ishizaki
2021-02-04 10:17:49 -08:00
parent 693e487771
commit f67b5d9917
6 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
enum CustomError: Error { enum CustomError: Error {
case invalid case invalid
case insecure case insecure

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
enum CustomError : Error { enum CustomError : Error {
case Bad case Bad
} }

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
func manyWithError(_ completion: (String?, Int?, Error?) -> Void) { } func manyWithError(_ completion: (String?, Int?, Error?) -> Void) { }
// RUN: %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 | %FileCheck -check-prefix=MANYBOUND %s // RUN: %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3 | %FileCheck -check-prefix=MANYBOUND %s

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
func withError(_ completion: (String?, Error?) -> Void) { } func withError(_ completion: (String?, Error?) -> Void) { }
func test(_ str: String) -> Bool { return false } func test(_ str: String) -> Bool { return false }

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
func simple(_ completion: (Result<String, Error>) -> Void) { } func simple(_ completion: (Result<String, Error>) -> Void) { }
func noError(_ completion: (Result<String, Never>) -> Void) { } func noError(_ completion: (Result<String, Never>) -> Void) { }
func test(_ str: String) -> Bool { return false } func test(_ str: String) -> Bool { return false }

View File

@@ -1,3 +1,5 @@
// rdar://problem/73984220
// XFAIL: asan
func simple(completion: (String?, Error?) -> Void) { } func simple(completion: (String?, Error?) -> Void) { }
func mismatches() { func mismatches() {