Skip to content

Commit 332476d

Browse files
committed
Match availability of INIntentError and INIntentErrorDomain in a test
1 parent 3a7419f commit 332476d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/stdlib/Intents.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ let swiftVersion = "4.2"
1717
let swiftVersion = "4"
1818
#endif
1919

20-
if #available(OSX 10.12, iOS 10.0, watchOS 3.2, *) {
20+
#if !os(macOS)
21+
if #available(iOS 10.0, watchOS 3.2, *) {
2122

2223
IntentsTestSuite.test("ErrorDomain/\(swiftVersion)") {
2324
expectEqual("IntentsErrorDomain", INIntentErrorDomain)
@@ -27,6 +28,7 @@ if #available(OSX 10.12, iOS 10.0, watchOS 3.2, *) {
2728
expectEqual("IntentsErrorDomain", INIntentError.errorDomain)
2829
}
2930
}
31+
#endif
3032

3133
#if os(iOS)
3234
if #available(iOS 11.0, *) {

0 commit comments

Comments
 (0)