Skip to content

Commit b007045

Browse files
committed
TestFoundation: disable a couple of FileManager tests on Win32
The FileManager implementation currently does not provide some attributes. Disable the tests on Windows.
1 parent 3cd1f79 commit b007045

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

TestFoundation/TestFileManager.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,18 @@ class TestFileManager : XCTestCase {
367367
let systemSize = attrs[.systemSize] as? NSNumber
368368
XCTAssertNotNil(systemSize)
369369
XCTAssertGreaterThan(systemSize!.uint64Value, systemFreeSize!.uint64Value)
370-
370+
371+
#if !os(Windows)
371372
let systemFreeNodes = attrs[.systemFreeNodes] as? NSNumber
372373
XCTAssertNotNil(systemFreeNodes)
373374
XCTAssertNotEqual(systemFreeNodes!.uint64Value, 0)
374-
375+
#endif
376+
377+
#if !os(Windows)
375378
let systemNodes = attrs[.systemNodes] as? NSNumber
376379
XCTAssertNotNil(systemNodes)
377380
XCTAssertGreaterThan(systemNodes!.uint64Value, systemFreeNodes!.uint64Value)
378-
381+
#endif
379382
} catch {
380383
XCTFail("\(error)")
381384
}

0 commit comments

Comments
 (0)