Skip to content

Commit 56bd69c

Browse files
committed
Skip tests that accept file descriptors on Windows
1 parent be8404f commit 56bd69c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SubprocessTests/PipeConfigurationTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ struct PipeConfigurationTests {
238238
let config = pipe(
239239
Echo("Hello World")
240240
).finally(
241-
input: NoInput(),
242241
output: .string(limit: .max),
243242
error: .discarded
244243
)
@@ -547,6 +546,7 @@ struct PipeConfigurationTests {
547546
#expect(result.terminationStatus.isSuccess)
548547
}
549548

549+
#if !os(Windows)
550550
@Test func testProcessStageWithFileDescriptorInput() async throws {
551551
// Create a temporary file with test content
552552
let tempURL = FileManager.default.temporaryDirectory.appendingPathComponent("pipe_test_\(UUID().uuidString).txt")
@@ -579,6 +579,7 @@ struct PipeConfigurationTests {
579579
#expect(lineCount == "3") // head -3 should give us 3 lines
580580
#expect(result.terminationStatus.isSuccess)
581581
}
582+
#endif
582583

583584
// FIXME regular files opened with FileDescriptor.open() aren't opened with overlapped I/O on Windows, so the I/O completion port can't add them.
584585
#if !os(Windows)

0 commit comments

Comments
 (0)