Skip to content

Commit 3d5f197

Browse files
authored
Merge pull request #2922 from compnerd/windows
Tests: repair the Windows CI
2 parents d6e1d6e + 9617a14 commit 3d5f197

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Foundation/Tests/TestPipe.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ class TestPipe: XCTestCase {
4444
for _ in 1...maxPipes {
4545
let pipe = Pipe()
4646
if !pipe.fileHandleForReading._isPlatformHandleValid {
47+
#if os(Windows)
48+
XCTAssertEqual(pipe.fileHandleForReading._handle, pipe.fileHandleForWriting._handle)
49+
#else
4750
XCTAssertEqual(pipe.fileHandleForReading.fileDescriptor, pipe.fileHandleForWriting.fileDescriptor)
51+
#endif
4852
break
4953
}
5054
pipes.append(pipe)

0 commit comments

Comments
 (0)