Skip to content

Commit 589b625

Browse files
committed
linux fix
1 parent 818f6c9 commit 589b625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/pfwTests/Internal/AssertComand.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ nonisolated(nonsending)
9292
private func withCapturedStdout(_ body: () async throws -> Void) async rethrows -> String {
9393
let pipe = Pipe()
9494
let original = dup(STDOUT_FILENO)
95-
fflush(stdout)
95+
fflush(nil)
9696
dup2(pipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO)
9797

9898
try await body()
9999

100-
fflush(stdout)
100+
fflush(nil)
101101
dup2(original, STDOUT_FILENO)
102102
close(original)
103103
pipe.fileHandleForWriting.closeFile()

0 commit comments

Comments
 (0)