Skip to content

Commit 7da273e

Browse files
meg-guptamikeash
andauthored
[Test] Fix Runtime/protocol_conformance_collision.swift on 11.3+. (#37731)
This test checks the OS version to decide how to operate but that check isn't right. Revert to a fake future version. rdar://77389722 Co-authored-by: Mike Ash <[email protected]>
1 parent fb774de commit 7da273e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Runtime/protocol_conformance_collision.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ func firstHashValue(_ x: P) -> Int {
4646
}
4747

4848
let osHasWorkaround: Bool
49-
if #available(macOS 11.3, iOS 14.5, tvOS 14.5, watchOS 7.4, *) {
49+
// These are deliberately not the standard 9999, as we don't want to hit the
50+
// special case where it's always available, and we don't want this check to be
51+
// rewritten in any find/replace operations.
52+
if #available(macOS 9998, iOS 9998, tvOS 9998, watchOS 9998, *) {
5053
osHasWorkaround = true
5154
} else {
5255
osHasWorkaround = false

0 commit comments

Comments
 (0)