Skip to content

Commit b60f7dd

Browse files
committed
Pass through function name to fix long path issues on windows
1 parent 9f2a73e commit b60f7dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/WorkspaceTests/InitTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ struct InitTests {
6464
name: String = "Foo",
6565
supportedTestingLibraries: Set<TestingLibrary> = [.xctest],
6666
buildSystem: BuildSystemProvider.Kind? = nil,
67-
customVerification: ((AbsolutePath, String) throws -> Void)? = nil
67+
customVerification: ((AbsolutePath, String) throws -> Void)? = nil,
68+
function: StaticString = #function
6869
) async throws {
69-
return try await testWithTemporaryDirectory { tmpPath in
70+
return try await testWithTemporaryDirectory(function: function) { tmpPath in
7071
let fs = localFileSystem
7172
let path = tmpPath.appending(name)
7273
let packageName = path.basename

0 commit comments

Comments
 (0)