diff --git a/Tests/Foundation/Tests/TestFileManager.swift b/Tests/Foundation/Tests/TestFileManager.swift index 33f1d3ec31..b90b5d17a9 100644 --- a/Tests/Foundation/Tests/TestFileManager.swift +++ b/Tests/Foundation/Tests/TestFileManager.swift @@ -322,7 +322,11 @@ class TestFileManager : XCTestCase { catch { XCTFail("\(error)") } // test against known undeletable file +#if os(Windows) + XCTAssertFalse(fm.isDeletableFile(atPath: "NUL")) +#else XCTAssertFalse(fm.isDeletableFile(atPath: "/dev/null")) +#endif } func test_fileAttributes() throws {