Skip to content

Commit 85e0f96

Browse files
authored
Merge pull request #1995 from bnbarham/fix-backslash
Fix a couple testing paths on Windows
2 parents 96e12e1 + b5a96fa commit 85e0f96

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Sources/SKTestSupport/SkipUnless.swift

+5
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ package actor SkipUnless {
140140
file: StaticString = #filePath,
141141
line: UInt = #line
142142
) async throws {
143+
try XCTSkipUnless(
144+
Platform.current != .windows,
145+
"Temporarily skipping as we need to fix these tests to use the cmake-built swift-syntax libraries on Windows."
146+
)
147+
143148
return try await shared.skipUnlessSupported(file: file, line: line) {
144149
do {
145150
let project = try await SwiftPMTestProject(

Sources/SKTestSupport/SwiftPMTestProject.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ package class SwiftPMTestProject: MultiFileTestProject {
169169
.macro(
170170
name: "MyMacros",
171171
swiftSettings: [.unsafeFlags([
172-
"-I", "\(moduleSearchPath)",
173-
"-Xcc", "-fmodule-map-file=\(try swiftSyntaxCShimsModulemap.filePath)"
172+
"-I", #"\(moduleSearchPath)"#,
173+
"-Xcc", #"-fmodule-map-file=\(try swiftSyntaxCShimsModulemap.filePath)"#
174174
])],
175175
linkerSettings: [
176176
.unsafeFlags([

0 commit comments

Comments
 (0)