Fix tests on Linux

This commit is contained in:
Max Howell
2019-01-17 18:23:22 -05:00
parent cac06d89fb
commit b4c92f86dc
6 changed files with 29 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ public class TemporaryDirectory {
public var path: Path { return Path(string: url.path) }
public init() throws {
#if os(macOS)
#if !os(Linux)
url = try FileManager.default.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: URL(fileURLWithPath: "/"), create: true)
#else
let envs = ProcessInfo.processInfo.environment