From bcd2f0d3001ed12a4d1d3b3dd91fe3d3e2753a54 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Thu, 11 Dec 2025 15:43:58 -0800 Subject: [PATCH] debug windows mix path --- Tests/SwiftDriverTests/SwiftDriverTests.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Tests/SwiftDriverTests/SwiftDriverTests.swift b/Tests/SwiftDriverTests/SwiftDriverTests.swift index c4e81b672..9edb8652c 100644 --- a/Tests/SwiftDriverTests/SwiftDriverTests.swift +++ b/Tests/SwiftDriverTests/SwiftDriverTests.swift @@ -7109,6 +7109,24 @@ final class SwiftDriverTests: XCTestCase { } } + func testMixedWindowsPath() throws { + // Mixed path on Windows. +#if os(windows) + do { + try withTemporaryDirectory { path in + let headerPath = path.appending("TestInputHeader.h") + try localFileSystem.writeFileContents(headerPath, bytes: "void test(void);") + let swiftPath = path.appending("foo.swift") + try localFileSystem.writeFileContents(swiftPath, bytes: "func foo() { test() }") + let pathStr = path.nativePathString(escaped: true) + var driver = try Driver(args: ["swift", "-c", "-import-objc-header", pathStr + "/TestInputHeader.h", pathStr + "/foo.swift", "-v", "-I", pathStr + "/include", "-sdk", pathStr + "/sdk"]) + let plannedJobs = try driver.planBuild() + try driver.run(jobs: plannedJobs) + } + } +#endif + } + func testPCMGeneration() throws { do { var driver = try Driver(args: ["swiftc", "-emit-pcm", "module.modulemap", "-module-name", "Test"])