Skip to content

Commit 8449b1c

Browse files
authored
Merge pull request swiftlang#291 from benlangmuir/createDir-revert
Revert "[test] Workaround an issue with createDirectory on Linux"
2 parents 5977d61 + caa30f1 commit 8449b1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SKTestSupport/SKSwiftPMTestWorkspace.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public final class SKSwiftPMTestWorkspace {
5757
_ = try? fm.removeItem(at: tmpDir)
5858

5959
buildDir = tmpDir.appendingPathComponent("build", isDirectory: true)
60-
try fm.tibs_createDirectoryWithIntermediates(at: buildDir)
60+
try fm.createDirectory(at: buildDir, withIntermediateDirectories: true, attributes: nil)
6161
let sourceDir = tmpDir.appendingPathComponent("src", isDirectory: true)
6262
try fm.copyItem(at: projectDir, to: sourceDir)
6363
let databaseDir = tmpDir.appendingPathComponent("db", isDirectory: true)
64-
try fm.tibs_createDirectoryWithIntermediates(at: databaseDir)
64+
try fm.createDirectory(at: databaseDir, withIntermediateDirectories: true, attributes: nil)
6565

6666
self.sources = try TestSources(rootDirectory: sourceDir)
6767

@@ -76,7 +76,7 @@ public final class SKSwiftPMTestWorkspace {
7676

7777
let libIndexStore = try IndexStoreLibrary(dylibPath: toolchain.libIndexStore!.pathString)
7878

79-
try fm.tibs_createDirectoryWithIntermediates(at: swiftpm.indexStorePath!.asURL)
79+
try fm.createDirectory(atPath: swiftpm.indexStorePath!.pathString, withIntermediateDirectories: true)
8080

8181
let indexDelegate = SourceKitIndexDelegate()
8282

0 commit comments

Comments
 (0)