Skip to content

Commit 6237c30

Browse files
authored
Merge pull request #1821 from ahoppen/ahoppen/enable-windows-tests
Enable SwiftPM-baesd tests on Windows
2 parents 9c84a34 + 63eca88 commit 6237c30

6 files changed

+0
-95
lines changed

Sources/SKTestSupport/SwiftPMTestProject.swift

-7
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,6 @@ package class SwiftPMTestProject: MultiFileTestProject {
175175
cleanUp: (@Sendable () -> Void)? = nil,
176176
testName: String = #function
177177
) async throws {
178-
#if os(Windows)
179-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
180-
try XCTSkipIf(
181-
true,
182-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
183-
)
184-
#endif
185178
var filesByPath: [RelativeFileLocation: String] = [:]
186179
for (fileLocation, contents) in files {
187180
let directories =

Tests/SourceKitLSPTests/BackgroundIndexingTests.swift

-24
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,6 @@ final class BackgroundIndexingTests: XCTestCase {
538538
}
539539

540540
func testPrepareTargetAfterEditToDependency() async throws {
541-
#if os(Windows)
542-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
543-
try XCTSkipIf(
544-
true,
545-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
546-
)
547-
#endif
548-
549541
var testHooks = TestHooks()
550542
let expectedPreparationTracker = ExpectedIndexTaskTracker(expectedPreparations: [
551543
[
@@ -645,14 +637,6 @@ final class BackgroundIndexingTests: XCTestCase {
645637
}
646638

647639
func testDontStackTargetPreparationForEditorFunctionality() async throws {
648-
#if os(Windows)
649-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
650-
try XCTSkipIf(
651-
true,
652-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
653-
)
654-
#endif
655-
656640
let allDocumentsOpened = WrappedSemaphore(name: "All documents opened")
657641
let libBStartedPreparation = WrappedSemaphore(name: "LibB started preparing")
658642
let libDPreparedForEditing = WrappedSemaphore(name: "LibD prepared for editing")
@@ -784,14 +768,6 @@ final class BackgroundIndexingTests: XCTestCase {
784768
}
785769

786770
func testIndexingHappensInParallel() async throws {
787-
#if os(Windows)
788-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
789-
try XCTSkipIf(
790-
true,
791-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
792-
)
793-
#endif
794-
795771
let fileAIndexingStarted = WrappedSemaphore(name: "FileA indexing started")
796772
let fileBIndexingStarted = WrappedSemaphore(name: "FileB indexing started")
797773

Tests/SourceKitLSPTests/PullDiagnosticsTests.swift

-8
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,6 @@ final class PullDiagnosticsTests: XCTestCase {
312312
}
313313

314314
func testDontReturnEmptyDiagnosticsIfDiagnosticRequestIsCancelled() async throws {
315-
#if os(Windows)
316-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
317-
try XCTSkipIf(
318-
true,
319-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
320-
)
321-
#endif
322-
323315
let diagnosticRequestCancelled = self.expectation(description: "diagnostic request cancelled")
324316
let packageLoadingDidFinish = self.expectation(description: "Package loading did finish")
325317
var testHooks = TestHooks()

Tests/SourceKitLSPTests/SwiftPMIntegrationTests.swift

-7
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ final class SwiftPMIntegrationTests: XCTestCase {
185185
}
186186

187187
func testNestedPackage() async throws {
188-
#if os(Windows)
189-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
190-
try XCTSkipIf(
191-
true,
192-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
193-
)
194-
#endif
195188
let project = try await MultiFileTestProject(files: [
196189
"pkg/Sources/lib/lib.swift": "",
197190
"pkg/Package.swift": """

Tests/SourceKitLSPTests/WorkspaceSymbolsTests.swift

-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ import XCTest
1616

1717
class WorkspaceSymbolsTests: XCTestCase {
1818
func testWorkspaceSymbolsAcrossPackages() async throws {
19-
#if os(Windows)
20-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
21-
try XCTSkipIf(
22-
true,
23-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
24-
)
25-
#endif
2619
let project = try await MultiFileTestProject(
2720
files: [
2821
"packageA/Sources/PackageALib/PackageALib.swift": """

Tests/SourceKitLSPTests/WorkspaceTests.swift

-42
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ import XCTest
2424
final class WorkspaceTests: XCTestCase {
2525

2626
func testMultipleSwiftPMWorkspaces() async throws {
27-
#if os(Windows)
28-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
29-
try XCTSkipIf(
30-
true,
31-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
32-
)
33-
#endif
3427
// The package manifest is the same for both packages we open.
3528
let packageManifest = """
3629
// swift-tools-version: 5.7
@@ -167,13 +160,6 @@ final class WorkspaceTests: XCTestCase {
167160
}
168161

169162
func testOpenPackageManifestInMultiSwiftPMWorkspaceSetup() async throws {
170-
#if os(Windows)
171-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
172-
try XCTSkipIf(
173-
true,
174-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
175-
)
176-
#endif
177163
let project = try await MultiFileTestProject(
178164
files: [
179165
// PackageA
@@ -250,13 +236,6 @@ final class WorkspaceTests: XCTestCase {
250236
}
251237

252238
func testSwiftPMPackageInSubfolder() async throws {
253-
#if os(Windows)
254-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
255-
try XCTSkipIf(
256-
true,
257-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
258-
)
259-
#endif
260239
let packageManifest = """
261240
// swift-tools-version: 5.7
262241
@@ -336,13 +315,6 @@ final class WorkspaceTests: XCTestCase {
336315
}
337316

338317
func testNestedSwiftPMWorkspacesWithoutDedicatedWorkspaceFolder() async throws {
339-
#if os(Windows)
340-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
341-
try XCTSkipIf(
342-
true,
343-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
344-
)
345-
#endif
346318
// The package manifest is the same for both packages we open.
347319
let packageManifest = """
348320
// swift-tools-version: 5.7
@@ -525,13 +497,6 @@ final class WorkspaceTests: XCTestCase {
525497
}
526498

527499
func testRecomputeFileWorkspaceMembershipOnPackageSwiftChange() async throws {
528-
#if os(Windows)
529-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
530-
try XCTSkipIf(
531-
true,
532-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
533-
)
534-
#endif
535500
let project = try await MultiFileTestProject(
536501
files: [
537502
"PackageA/Sources/MyLibrary/libA.swift": "",
@@ -671,13 +636,6 @@ final class WorkspaceTests: XCTestCase {
671636
}
672637

673638
func testChangeWorkspaceFolders() async throws {
674-
#if os(Windows)
675-
// FIXME: Enable when https://github.com/swiftlang/swift-package-manager/issues/8038 is fixed
676-
try XCTSkipIf(
677-
true,
678-
"SwiftPM tests fail nondeterministically due to https://github.com/swiftlang/swift-package-manager/issues/8038"
679-
)
680-
#endif
681639
let project = try await MultiFileTestProject(
682640
files: [
683641
"subdir/Sources/otherPackage/otherPackage.swift": """

0 commit comments

Comments
 (0)