Skip to content

Commit 8910837

Browse files
committed
Re-enable tests for Windows
1 parent 6162ffe commit 8910837

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Tests/SubprocessTests/PipeConfigurationTests.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ struct PipeConfigurationTests {
546546
#expect(result.terminationStatus.isSuccess)
547547
}
548548

549-
#if !os(Windows)
550549
@Test func testProcessStageWithFileDescriptorInput() async throws {
551550
// Create a temporary file with test content
552551
let tempURL = FileManager.default.temporaryDirectory.appendingPathComponent("pipe_test_\(UUID().uuidString).txt")
@@ -579,10 +578,7 @@ struct PipeConfigurationTests {
579578
#expect(lineCount == "3") // head -3 should give us 3 lines
580579
#expect(result.terminationStatus.isSuccess)
581580
}
582-
#endif
583581

584-
// 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.
585-
#if !os(Windows)
586582
@Test func testSwiftFunctionWithFileDescriptorInput() async throws {
587583
// Create a temporary file with JSON content
588584
let tempURL = FileManager.default.temporaryDirectory.appendingPathComponent("json_test_\(UUID().uuidString).json")
@@ -635,7 +631,6 @@ struct PipeConfigurationTests {
635631
#expect(result.standardOutput?.contains("Person: Alice, Age: 30, Location: New York") == true)
636632
#expect(result.terminationStatus.isSuccess)
637633
}
638-
#endif
639634

640635
@Test func testComplexPipelineWithStringInputAndSwiftFunction() async throws {
641636
let csvData = "name,score,grade\nAlice,95,A\nBob,87,B\nCharlie,92,A\nDave,78,C"
@@ -910,7 +905,6 @@ struct PipeConfigurationTests {
910905
#expect(result.terminationStatus.isSuccess)
911906
}
912907

913-
#if !os(Windows)
914908
@Test func testMergeErrorRedirection() async throws {
915909
#if os(Windows)
916910
let config =
@@ -992,7 +986,6 @@ struct PipeConfigurationTests {
992986
#expect(lineCount == "1")
993987
#expect(result.terminationStatus.isSuccess)
994988
}
995-
#endif
996989

997990
@Test func testProcessHelperWithErrorRedirection() async throws {
998991
let pipeline =

0 commit comments

Comments
 (0)