Skip to content

Commit 4925f86

Browse files
committed
Skip tests that are only supported on macOS
1 parent d800c6d commit 4925f86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/SwiftSourceKitPluginTests/SwiftSourceKitPluginTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,9 @@ final class SwiftSourceKitPluginTests: XCTestCase {
993993

994994
// rdar://104381080 (NSImage(imageLiteralResourceName:) was my top completion — this seems odd)
995995
func testPopularityForTypeFromSubmodule() async throws {
996+
#if !os(macOS)
997+
try XCTSkipIf(true, "AppKit is only defined on macOS")
998+
#endif
996999
let sourcekitd = try await getSourceKitD()
9971000
let path = scratchFilePath()
9981001
let positions = try await sourcekitd.openDocument(
@@ -1507,6 +1510,9 @@ final class SwiftSourceKitPluginTests: XCTestCase {
15071510
}
15081511

15091512
func testCompletionDiagnostics() async throws {
1513+
#if !os(macOS)
1514+
try XCTSkipIf(true, "Soft deprecation is only defined for macOS in this test case")
1515+
#endif
15101516
let sourcekitd = try await getSourceKitD()
15111517
let path = scratchFilePath()
15121518
let positions = try await sourcekitd.openDocument(

0 commit comments

Comments
 (0)