Skip to content

Commit b155f05

Browse files
committed
Fix windows path for sdkRootPath test case
1 parent b8bc8d8 commit b155f05

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tests/PackageModelTests/SwiftSDKBundleTests.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,10 +614,16 @@ final class SwiftSDKBundleTests: XCTestCase {
614614

615615
let targetTripleConfigPath = AbsolutePath("/sdks/configuration/\(testArtifactID)_\(targetTriple.tripleString).json")
616616

617+
#if os(Windows)
618+
let sdkRootPath = "C:\\some\\sdk\\root\\path"
619+
#else
620+
let sdkRootPath = "/some/sdk/root/path"
621+
#endif
622+
617623
do {
618624
let (config, fileSystem) = try await createConfigurationStore()
619625
var args = SwiftSDK.PathsConfiguration<String>()
620-
args.sdkRootPath = "/some/sdk/root/path"
626+
args.sdkRootPath = sdkRootPath
621627
let configSuccess = try config.configure(
622628
sdkID: testArtifactID,
623629
targetTriple: targetTriple.tripleString,
@@ -638,7 +644,7 @@ final class SwiftSDKBundleTests: XCTestCase {
638644
do {
639645
let (config, fileSystem) = try await createConfigurationStore()
640646
var args = SwiftSDK.PathsConfiguration<String>()
641-
args.sdkRootPath = "/some/sdk/root/path"
647+
args.sdkRootPath = sdkRootPath
642648
// an empty targetTriple will configure all triples
643649
let configSuccess = try config.configure(
644650
sdkID: testArtifactID,

0 commit comments

Comments
 (0)