Skip to content

Commit 5156b7c

Browse files
authored
Merge pull request #17979 from milseman/4_2_nfc
[test] Update String tests for older iOS versions
2 parents 41b33df + 7c20033 commit 5156b7c

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
@@ -912,6 +912,7 @@ StringTests.test("stringGutsReserve")
912912
.skip(.nativeRuntime("Foundation dependency"))
913913
.code {
914914
#if _runtime(_ObjC)
915+
guard #available(iOS 11.0, *) else { return }
915916
for k in 0...7 {
916917
var base: String
917918
var startedNative: Bool

0 commit comments

Comments
 (0)