Skip to content

Commit 4c88e14

Browse files
committed
Skip tests that do not work with Windows
1 parent 047bf9a commit 4c88e14

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/SubprocessTests/PipeConfigurationTests.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ struct PipeConfigurationTests {
580580
#expect(result.terminationStatus.isSuccess)
581581
}
582582

583+
// 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.
584+
#if !os(Windows)
583585
@Test func testSwiftFunctionWithFileDescriptorInput() async throws {
584586
// Create a temporary file with JSON content
585587
let tempURL = FileManager.default.temporaryDirectory.appendingPathComponent("json_test_\(UUID().uuidString).json")
@@ -632,6 +634,7 @@ struct PipeConfigurationTests {
632634
#expect(result.standardOutput?.contains("Person: Alice, Age: 30, Location: New York") == true)
633635
#expect(result.terminationStatus.isSuccess)
634636
}
637+
#endif
635638

636639
@Test func testComplexPipelineWithStringInputAndSwiftFunction() async throws {
637640
let csvData = "name,score,grade\nAlice,95,A\nBob,87,B\nCharlie,92,A\nDave,78,C"
@@ -701,9 +704,8 @@ struct PipeConfigurationTests {
701704
}
702705
return 0
703706
}
704-
| process(
705-
executable: .name("cat")
706-
) |> (
707+
| Cat()
708+
|> (
707709
input: .string(numbers),
708710
output: .string(limit: .max),
709711
error: .string(limit: .max)

0 commit comments

Comments
 (0)