Skip to content

Commit d0f08f0

Browse files
committed
[test] TestNotification: Check availability before running hashing test
The Foundation overlay had a different hash encoding for TestNotification. (cherry picked from commit ae5884e)
1 parent 16641da commit d0f08f0

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)