Skip to content

Commit 0a8a0e5

Browse files
committed
Add more tests for Windows
1 parent 1d2f824 commit 0a8a0e5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Tests/SubprocessTests/PipeConfigurationTests.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ struct PipeConfigurationTests {
229229
#expect(result.terminationStatus.isSuccess)
230230
}
231231

232-
// FIXME - these function tests are hanging on Linux
233-
#if !os(Windows)
234232
@Test func testBasicSwiftFunctionBeginning() async throws {
235233
let config =
236234
pipe { input, output, error in
@@ -261,9 +259,7 @@ struct PipeConfigurationTests {
261259
#expect(result.standardOutput?.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) == "Hello World")
262260
#expect(result.terminationStatus.isSuccess)
263261
}
264-
#endif
265262

266-
#if !os(Windows)
267263
@Test func testBasicSwiftFunctionMiddle() async throws {
268264
let config =
269265
pipe(
@@ -295,9 +291,7 @@ struct PipeConfigurationTests {
295291
#expect(result.standardOutput?.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) == "Hello World")
296292
#expect(result.terminationStatus.isSuccess)
297293
}
298-
#endif
299294

300-
#if !os(Windows)
301295
@Test func testBasicSwiftFunctionEnd() async throws {
302296
let config =
303297
pipe(
@@ -325,7 +319,6 @@ struct PipeConfigurationTests {
325319
#expect(result.standardOutput?.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) == "Hello World")
326320
#expect(result.terminationStatus.isSuccess)
327321
}
328-
#endif
329322

330323
@Test func testPipeConfigurationWithConfiguration() async throws {
331324
let configuration = Echo("Test Message").configuration
@@ -571,8 +564,6 @@ struct PipeConfigurationTests {
571564
#expect(result.terminationStatus.isSuccess)
572565
}
573566

574-
// FIXME - These tests are hanging on Linux
575-
#if !os(Windows)
576567
@Test func testSwiftFunctionWithFileDescriptorInput() async throws {
577568
// Create a temporary file with JSON content
578569
let tempURL = FileManager.default.temporaryDirectory.appendingPathComponent("json_test_\(UUID().uuidString).json")
@@ -625,7 +616,6 @@ struct PipeConfigurationTests {
625616
#expect(result.standardOutput?.contains("Person: Alice, Age: 30, Location: New York") == true)
626617
#expect(result.terminationStatus.isSuccess)
627618
}
628-
#endif
629619

630620
@Test func testComplexPipelineWithStringInputAndSwiftFunction() async throws {
631621
let csvData = "name,score,grade\nAlice,95,A\nBob,87,B\nCharlie,92,A\nDave,78,C"
@@ -669,8 +659,6 @@ struct PipeConfigurationTests {
669659
#expect(result.terminationStatus.isSuccess)
670660
}
671661

672-
// FIXME - this test is hanging on Linux
673-
#if !os(Windows)
674662
@Test func testMultiStageSwiftFunctionPipelineWithStringInput() async throws {
675663
let numbers = "10\n25\n7\n42\n13\n8\n99"
676664

@@ -727,7 +715,6 @@ struct PipeConfigurationTests {
727715

728716
#expect(result.terminationStatus.isSuccess)
729717
}
730-
#endif
731718

732719
// MARK: - Shared Error Handling Tests
733720

0 commit comments

Comments
 (0)