Miscellaneous adjustments to make tests pass on Windows

This is mostly test infrastructure that needed adjusting.
This commit is contained in:
Alex Hoppen
2024-10-10 09:28:26 -07:00
parent aa0aa927ca
commit c16e33d281
19 changed files with 161 additions and 68 deletions

View File

@@ -102,7 +102,10 @@ package class MultiFileTestProject {
var fileData: [String: FileData] = [:]
for (fileLocation, markedText) in files {
let markedText = markedText.replacingOccurrences(of: "$TEST_DIR", with: scratchDirectory.path)
let markedText =
markedText
.replacingOccurrences(of: "$TEST_DIR_URL", with: scratchDirectory.absoluteString)
.replacingOccurrences(of: "$TEST_DIR", with: scratchDirectory.path)
let fileURL = fileLocation.url(relativeTo: scratchDirectory)
try FileManager.default.createDirectory(
at: fileURL.deletingLastPathComponent(),