Skip to content

Commit c8ed8f9

Browse files
committed
[test] Update String tests for older iOS versions
1 parent ea795a2 commit c8ed8f9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/stdlib/StringBridge.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func expectCocoa(_ str: String,
3434
}
3535

3636
StringBridgeTests.test("Tagged NSString") {
37+
guard #available(iOS 11.0, *) else { return }
3738
#if arch(i386) || arch(arm)
3839
#else
3940
// Bridge tagged strings as small

validation-test/stdlib/String.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ StringTests.test("stringGutsReserve")
903903
.skip(.nativeRuntime("Foundation dependency"))
904904
.code {
905905
#if _runtime(_ObjC)
906+
guard #available(iOS 11.0, *) else { return }
906907
for k in 0...7 {
907908
var base: String
908909
var startedNative: Bool

0 commit comments

Comments
 (0)