Skip to content

Commit b3a2e58

Browse files
committed
Skip more tests on Windows, and fix SourceKitLSPAPITests.SourceKitLSPAPITests.testLoadPackage to have windows path
1 parent b111099 commit b3a2e58

File tree

3 files changed

+138
-2
lines changed

3 files changed

+138
-2
lines changed

Tests/SourceKitLSPAPITests/SourceKitLSPAPITests.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ final class SourceKitLSPAPITests: XCTestCase {
318318
"-package-name", "pkg",
319319
"-emit-dependencies",
320320
"-emit-module",
321-
"-emit-module-path", "/path/to/build/\(destinationBuildParameters.triple)/debug/Modules/lib.swiftmodule"
321+
"-emit-module-path", "/path/to/build/\(destinationBuildParameters.triple)/debug/Modules/lib.swiftmodule".fixwin
322322
],
323323
isPartOfRootPackage: true
324324
)
@@ -402,3 +402,13 @@ extension SourceKitLSPAPI.BuildDescription {
402402
return result
403403
}
404404
}
405+
406+
extension String {
407+
var fixwin: String {
408+
#if os(Windows)
409+
return self.replacingOccurrences(of: "/", with: "\\")
410+
#else
411+
return self
412+
#endif
413+
}
414+
}

0 commit comments

Comments
 (0)