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

@@ -47,7 +47,7 @@ public extension Data {
func write(to: Path, atomically: Bool = false) throws -> Path {
let opts: NSData.WritingOptions
if atomically {
#if os(macOS)
#if !os(Linux)
opts = .atomicWrite
#else
opts = .atomic