mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
Miscellaneous adjustments to make tests pass on Windows
This is mostly test infrastructure that needed adjusting.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user