Skip to content

Commit 4009c92

Browse files
committed
tests: repair BuildPlanTests.testSnippets on Windows
Escape the path string to match the read content. This allows this test to pass on Windows improving test coverage.
1 parent 4c35491 commit 4009c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/BuildTests/BuildPlanTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4958,7 +4958,7 @@ final class BuildPlanTests: XCTestCase {
49584958

49594959
let yamlContents: String = try fs.readFileContents(yaml)
49604960
let inputs = """
4961-
inputs: ["\(AbsolutePath("/Pkg/Snippets/ASnippet.swift"))","\(swiftGetVersionFilePath.escapedPathString)","\(AbsolutePath("/Pkg/.build/debug/Lib.swiftmodule"))"
4961+
inputs: ["\(AbsolutePath("/Pkg/Snippets/ASnippet.swift").escapedPathString)","\(swiftGetVersionFilePath.escapedPathString)","\(AbsolutePath("/Pkg/.build/debug/Lib.swiftmodule").escapedPathString)"
49624962
"""
49634963
XCTAssertMatch(yamlContents, .contains(inputs))
49644964
}

0 commit comments

Comments
 (0)