Skip to content

Commit ef2db24

Browse files
committed
TSCTestSupport: account for : in function names
Windows does not permit `:` in the file names. Substitute `:` with `_` to permit tests to execute on Windows.
1 parent 5802484 commit ef2db24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TSCTestSupport/misc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public func testWithTemporaryDirectory(
3333
.replacingOccurrences(of: "(", with: "")
3434
.replacingOccurrences(of: ")", with: "")
3535
.replacingOccurrences(of: ".", with: "")
36+
.replacingOccurrences(of: ":", with: "_")
3637
try withTemporaryDirectory(prefix: "spm-tests-\(cleanedFunction)") { tmpDirPath in
3738
defer {
3839
// Unblock and remove the tmp dir on deinit.

0 commit comments

Comments
 (0)