Skip to content

Commit 348b4de

Browse files
authored
Merge pull request #99 from compnerd/file-flags
Tests: remove some flags from file tests
2 parents e378fb2 + 8e247d9 commit 348b4de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/SystemTests/FileTypesTest.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ final class FileDescriptorTest: XCTestCase {
2929
XCTAssertEqual(O_WRONLY, FileDescriptor.AccessMode.writeOnly.rawValue)
3030
XCTAssertEqual(O_RDWR, FileDescriptor.AccessMode.readWrite.rawValue)
3131

32+
#if !os(Windows)
3233
XCTAssertEqual(O_NONBLOCK, FileDescriptor.OpenOptions.nonBlocking.rawValue)
34+
#endif
3335
XCTAssertEqual(O_APPEND, FileDescriptor.OpenOptions.append.rawValue)
3436
XCTAssertEqual(O_CREAT, FileDescriptor.OpenOptions.create.rawValue)
3537
XCTAssertEqual(O_TRUNC, FileDescriptor.OpenOptions.truncate.rawValue)
3638
XCTAssertEqual(O_EXCL, FileDescriptor.OpenOptions.exclusiveCreate.rawValue)
39+
#if !os(Windows)
3740
XCTAssertEqual(O_NOFOLLOW, FileDescriptor.OpenOptions.noFollow.rawValue)
3841
XCTAssertEqual(O_CLOEXEC, FileDescriptor.OpenOptions.closeOnExec.rawValue)
42+
#endif
3943

4044
// BSD only
4145
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)

0 commit comments

Comments
 (0)