Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions test/stdlib/BridgedArrayNonContiguous.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
//
//===----------------------------------------------------------------------===//

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

// REQUIRES: executable_test
// REQUIRES: objc_interop
// REQUIRES: swift_feature_LifetimeDependence

import StdlibUnittest

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

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

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

suite.test("Bridged NSArray as Span")
.skip(.custom(
{ if #available(SwiftStdlib 6.2, *) { false } else { true } },
reason: "Requires Swift 6.2's standard library"
))
.code {
.require(.stdlib_6_2).code {
guard #available(SwiftStdlib 6.2, *) else { return }

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