Skip to content

Commit 455b6d6

Browse files
committed
Enable the tests for this particular cast when running against a sufficiently-new runtime
1 parent 3a849ab commit 455b6d6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/Casting/Casts.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -981,13 +981,9 @@ CastsTests.test("Recursive AnyHashable") {
981981
// https://github.com/apple/swift/issues/56987
982982
#if _runtime(_ObjC)
983983
CastsTests.test("Do not overuse __SwiftValue")
984-
.skip(.osxAny("Not yet fully enabled for Apple OSes"))
985-
.skip(.iOSAny("Not yet fully enabled for Apple OSes"))
986-
.skip(.iOSSimulatorAny("Not yet fully enabled for Apple OSes"))
987-
.skip(.tvOSAny("Not yet fully enabled for Apple OSes"))
988-
.skip(.tvOSSimulatorAny("Not yet fully enabled for Apple OSes"))
989-
.skip(.watchOSAny("Not yet fully enabled for Apple OSes"))
990-
.skip(.watchOSSimulatorAny("Not yet fully enabled for Apple OSes"))
984+
.skip(.custom({
985+
if #available(SwiftStdlib 5.9, *) { return false } else { return true }
986+
}, reason: "Requires stdlib from Swift 5.9 or later"))
991987
.code {
992988
struct Bar {}
993989
// This used to succeed because of overeager __SwiftValue

0 commit comments

Comments
 (0)