Skip to content

Commit

Permalink
TSCTestSupport: account for : in function names
Browse files Browse the repository at this point in the history
Windows does not permit `:` in the file names.  Substitute `:` with `_`
to permit tests to execute on Windows.
  • Loading branch information
compnerd committed Jul 10, 2023
1 parent 5802484 commit ef2db24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/TSCTestSupport/misc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public func testWithTemporaryDirectory(
.replacingOccurrences(of: "(", with: "")
.replacingOccurrences(of: ")", with: "")
.replacingOccurrences(of: ".", with: "")
.replacingOccurrences(of: ":", with: "_")
try withTemporaryDirectory(prefix: "spm-tests-\(cleanedFunction)") { tmpDirPath in
defer {
// Unblock and remove the tmp dir on deinit.
Expand Down

0 comments on commit ef2db24

Please sign in to comment.