Skip to content

Commit 77f7f42

Browse files
authored
Merge pull request #83980 from glessard/rdar159026055-implementation-guard
[test] adjust backdeployment testing for bridged arrays
2 parents 534690b + 833ed3c commit 77f7f42

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/stdlib/BridgedArrayNonContiguous.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
// RUN: %target-run-stdlib-swift -enable-experimental-feature LifetimeDependence
13+
// RUN: %target-run-stdlib-swift
1414

1515
// REQUIRES: executable_test
1616
// REQUIRES: objc_interop
17-
// REQUIRES: swift_feature_LifetimeDependence
1817

1918
import StdlibUnittest
2019

@@ -24,6 +23,7 @@ var suite = TestSuite("EagerLazyBridgingTests")
2423
defer { runAllTests() }
2524

2625
suite.test("Bridged NSArray without direct memory sharing") {
26+
guard #available(SwiftStdlib 6.2, *) else { return }
2727

2828
var arr = (0..<100).map({ _ in NSObject() as AnyObject})
2929
let identifiers = arr.map(ObjectIdentifier.init)
@@ -45,11 +45,7 @@ suite.test("Bridged NSArray without direct memory sharing") {
4545
}
4646

4747
suite.test("Bridged NSArray as Span")
48-
.skip(.custom(
49-
{ if #available(SwiftStdlib 6.2, *) { false } else { true } },
50-
reason: "Requires Swift 6.2's standard library"
51-
))
52-
.code {
48+
.require(.stdlib_6_2).code {
5349
guard #available(SwiftStdlib 6.2, *) else { return }
5450

5551
var arr = (0..<100).map({ _ in NSObject() as AnyObject})

0 commit comments

Comments
 (0)