Skip to content

Commit 9617a14

Browse files
committed
Tests: repair the Windows CI
The Windows CI was broken due to availability checks being supported in the compiler causing the build to fail due to the `fileDescriptor` being unavailable.
1 parent d6e1d6e commit 9617a14

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)