Skip to content

Commit 2d01be6

Browse files
committed
[Test] Fix Runtime/protocol_conformance_collision.swift on 11.3+.
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
1 parent 513774e commit 2d01be6

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
@@ -47,7 +47,10 @@ func firstHashValue(_ x: P) -> Int {
4747
}
4848

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

0 commit comments

Comments
 (0)