Skip to content

Commit f160e2b

Browse files
committed
[test] make back-deployment testing possible
1 parent a37248a commit f160e2b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/stdlib/UnsafeRawBufferPointer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ UnsafeRawBufferPointerTestSuite.test("load.unaligned")
527527
if #available(SwiftStdlib 5.7, *) { return false } else { return true }
528528
}, reason: "Requires stdlib from Swift 5.7"))
529529
.code {
530+
guard #available(SwiftStdlib 5.7, *) else { return }
530531
var data: [UInt8] = [0, 0, 0, .max, .max, .max, .max, 0]
531532
let i = data.firstIndex(of: .max)!
532533
data.withUnsafeBytes {

test/stdlib/UnsafeRawPointer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ UnsafeMutableRawPointerExtraTestSuite.test("load.unaligned")
100100
return true
101101
}, reason: "Requires Swift 5.7's stdlib"))
102102
.code {
103+
guard #available(SwiftStdlib 5.7, *) else { return }
103104
var data: [UInt8] = [0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xff, 0x0]
104105
var result: UInt32
105106
result = data.withUnsafeBytes {

0 commit comments

Comments
 (0)