Skip to content

Commit 46e0ae8

Browse files
committed
Tests: adjust tests for Windows path expectations
Use an `AbsolutePath` for the literal representation to allow for the appropriate conversion to apply to the expectation. This repairs the test failure on Windows.
1 parent 63e1787 commit 46e0ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PackageLoadingTests/PkgConfigAllowlistTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ final class PkgConfigAllowlistTests: XCTestCase {
4646

4747
func testPathSDKPaths() throws {
4848
let flags = ["-I/opt/homebrew/Cellar/cairo/1.16.0_5/include/cairo", "-I/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi"]
49-
let sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk"
50-
let result = try patchSDKPaths(in: flags, to: AbsolutePath(sdk))
49+
let sdk = AbsolutePath("/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk")
50+
let result = try patchSDKPaths(in: flags, to: sdk)
5151

5252
XCTAssertEqual(result, ["-I/opt/homebrew/Cellar/cairo/1.16.0_5/include/cairo", "-I\(sdk)/usr/include/ffi"])
5353
}

0 commit comments

Comments
 (0)