Skip to content

Commit fff8890

Browse files
committed
more
1 parent c4ec918 commit fff8890

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/TSCTestSupport/FileSystemExtensions.swift

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ extension AbsolutePath {
9191
}
9292

9393

94+
@available(*, deprecated, message: "use direct string instead")
9495
public init(base: AbsolutePath, _ relStr: StaticString) {
9596
let pathString = relStr.withUTF8Buffer {
9697
String(decoding: $0, as: UTF8.self)

Tests/TSCBasicTests/PathTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PathTests: XCTestCase {
2727

2828
func testStringInitialization() throws {
2929
let abs1 = AbsolutePath("/")
30-
let abs2 = AbsolutePath(base: abs1, ".")
30+
let abs2 = AbsolutePath(abs1, ".")
3131
XCTAssertEqual(abs1, abs2)
3232
let rel3 = "."
3333
let abs3 = try AbsolutePath(abs2, validating: rel3)

0 commit comments

Comments
 (0)