We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 818f6c9 commit 589b625Copy full SHA for 589b625
Tests/pfwTests/Internal/AssertComand.swift
@@ -92,12 +92,12 @@ nonisolated(nonsending)
92
private func withCapturedStdout(_ body: () async throws -> Void) async rethrows -> String {
93
let pipe = Pipe()
94
let original = dup(STDOUT_FILENO)
95
- fflush(stdout)
+ fflush(nil)
96
dup2(pipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO)
97
98
try await body()
99
100
101
dup2(original, STDOUT_FILENO)
102
close(original)
103
pipe.fileHandleForWriting.closeFile()
0 commit comments