Skip to content

Commit 2b69325

Browse files
authored
test/stdlib/StringAPI.swift: disable crashing tests on WASI
1 parent 8b52415 commit 2b69325

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/StringAPI.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ StringTests.test("SameTypeComparisons") {
342342
expectFalse(xs != xs)
343343
}
344344

345+
#if !os(WASI)
345346
StringTests.test("CompareStringsWithUnpairedSurrogates")
346347
.xfail(
347348
.always("<rdar://problem/18029104> Strings referring to underlying " +
@@ -357,6 +358,7 @@ StringTests.test("CompareStringsWithUnpairedSurrogates")
357358
]
358359
)
359360
}
361+
#endif
360362

361363
StringTests.test("[String].joined() -> String") {
362364
let s = ["hello", "world"].joined()

0 commit comments

Comments
 (0)