mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Test] Add availability to the ResilientNSObject test in objc_getClass.swift
This is a new test in Swift 5.1 that is not expected to pass when running with the Swift 5.0 runtime library. rdar://problem/50175915
This commit is contained in:
@@ -225,6 +225,7 @@ testSuite.test("ResilientNSObject")
|
||||
reason: "objc_getClass hook not present"))
|
||||
.requireOwnProcess()
|
||||
.code {
|
||||
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
|
||||
requireClass(named: "_TtC4main27ResilientSubclassOfNSObject",
|
||||
demangledName: "main.ResilientSubclassOfNSObject")
|
||||
requireClass(named: "_TtC4main34ResilientSubclassOfGenericNSObject",
|
||||
|
||||
Reference in New Issue
Block a user