Skip to content

Commit c134c20

Browse files
authored
Merge pull request #24556 from lorentey/notification-test-availability-5.1
[5.1][test] TestNotification: Check availability before running hashing test
2 parents bbdc9e0 + d0f08f0 commit c134c20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/TestNotification.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class TestNotification : TestNotificationSuper {
3434
}
3535

3636
func test_hashing() {
37+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
38+
3739
let o1 = NSObject()
3840
let o2 = NSObject()
3941
let values: [Notification] = [

0 commit comments

Comments
 (0)