Skip to content

Commit e09d83a

Browse files
committed
Disable a few more failing tests on Windows
1 parent 854d362 commit e09d83a

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

Tests/SourceKitLSPTests/SemanticTokensTests.swift

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ final class SemanticTokensTests: XCTestCase {
330330
func testSemanticTokensForFunctionSignatures() async throws {
331331
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
332332

333+
#if os(Windows)
334+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
335+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
336+
#endif
337+
333338
try await assertSemanticTokens(
334339
markedContents: "1️⃣func 2️⃣f(3️⃣x: 4️⃣Int, _ 5️⃣y: 6️⃣String) {}",
335340
expected: [
@@ -404,6 +409,11 @@ final class SemanticTokensTests: XCTestCase {
404409
func testSemanticTokensForEnumMembers() async throws {
405410
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
406411

412+
#if os(Windows)
413+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
414+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
415+
#endif
416+
407417
try await assertSemanticTokens(
408418
markedContents: """
409419
1️⃣enum 2️⃣Maybe<3️⃣T> {
@@ -490,6 +500,11 @@ final class SemanticTokensTests: XCTestCase {
490500
func testEmptyEdit() async throws {
491501
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
492502

503+
#if os(Windows)
504+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
505+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
506+
#endif
507+
493508
let testClient = try await TestSourceKitLSPClient()
494509
let uri = DocumentURI(for: .swift)
495510
let positions = testClient.openDocument(
@@ -573,6 +588,11 @@ final class SemanticTokensTests: XCTestCase {
573588
func testReplaceUntilEndOfToken() async throws {
574589
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
575590

591+
#if os(Windows)
592+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
593+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
594+
#endif
595+
576596
let testClient = try await TestSourceKitLSPClient()
577597
let uri = DocumentURI(for: .swift)
578598
let positions = testClient.openDocument(
@@ -626,6 +646,11 @@ final class SemanticTokensTests: XCTestCase {
626646
func testInsertSpaceBeforeToken() async throws {
627647
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
628648

649+
#if os(Windows)
650+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
651+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
652+
#endif
653+
629654
let testClient = try await TestSourceKitLSPClient()
630655
let uri = DocumentURI(for: .swift)
631656
let positions = testClient.openDocument(
@@ -693,6 +718,11 @@ final class SemanticTokensTests: XCTestCase {
693718
func testInsertNewline() async throws {
694719
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
695720

721+
#if os(Windows)
722+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
723+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
724+
#endif
725+
696726
let testClient = try await TestSourceKitLSPClient()
697727
let uri = DocumentURI(for: .swift)
698728
let positions = testClient.openDocument(
@@ -766,6 +796,11 @@ final class SemanticTokensTests: XCTestCase {
766796
func testInsertTokens() async throws {
767797
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
768798

799+
#if os(Windows)
800+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
801+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
802+
#endif
803+
769804
let testClient = try await TestSourceKitLSPClient()
770805
let uri = DocumentURI(for: .swift)
771806
let positions = testClient.openDocument(
@@ -897,6 +932,11 @@ final class SemanticTokensTests: XCTestCase {
897932
func testArgumentLabels() async throws {
898933
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
899934

935+
#if os(Windows)
936+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
937+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
938+
#endif
939+
900940
try await assertSemanticTokens(
901941
markedContents: """
902942
1️⃣func 2️⃣foo(3️⃣arg: 4️⃣Int) {}
@@ -917,6 +957,11 @@ final class SemanticTokensTests: XCTestCase {
917957
func testFunctionDeclarationWithFirstAndSecondName() async throws {
918958
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
919959

960+
#if os(Windows)
961+
// FIXME: Run when https://github.com/swiftlang/sourcekit-lsp/issues/1770 is fixed
962+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1770")
963+
#endif
964+
920965
try await assertSemanticTokens(
921966
markedContents: """
922967
1️⃣func 2️⃣foo(3️⃣arg 4️⃣internalName: 5️⃣Int) {}

Tests/SourceKitLSPTests/SwiftInterfaceTests.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ final class SwiftInterfaceTests: XCTestCase {
4343
}
4444

4545
func testDefinitionInSystemModuleInterface() async throws {
46+
#if os(Windows)
47+
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
48+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
49+
#endif
50+
4651
let project = try await IndexedSingleSwiftFileTestProject(
4752
"""
4853
public func libFunc() async {
@@ -135,6 +140,11 @@ final class SwiftInterfaceTests: XCTestCase {
135140
}
136141

137142
func testJumpToSynthesizedExtensionMethodInSystemModuleWithoutIndex() async throws {
143+
#if os(Windows)
144+
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
145+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
146+
#endif
147+
138148
let testClient = try await TestSourceKitLSPClient()
139149
let uri = DocumentURI(for: .swift)
140150

@@ -157,6 +167,11 @@ final class SwiftInterfaceTests: XCTestCase {
157167
}
158168

159169
func testJumpToSynthesizedExtensionMethodInSystemModuleWithIndex() async throws {
170+
#if os(Windows)
171+
// FIXME: Enable when https://github.com/swiftlang/sourcekit-lsp/issues/1771 is fixed
172+
try XCTSkipIf(true, "https://github.com/swiftlang/sourcekit-lsp/issues/1771")
173+
#endif
174+
160175
let project = try await IndexedSingleSwiftFileTestProject(
161176
"""
162177
func test(x: [String]) {

0 commit comments

Comments
 (0)