authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-29 22:55:44-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-08-30 00:48:50-07:00
log31a0c2a36a09fd3cd82f061b090fc12c3239dfb1
tree3bb2e8365fe2e9f44e60bf5f095311c822d66460
parent07da9567e67643ed3a252ba1d10379ef23a6f682

child process test: preemptively use streaming mode

works around #24984

1 files changed, 1 insertions(+), 1 deletions(-)

test/standalone/child_process/main.zig+1-1
......@@ -32,7 +32,7 @@ pub fn main() !void {
3232
3333 const hello_stdout = "hello from stdout";
3434 var buf: [hello_stdout.len]u8 = undefined;
35 var stdout_reader = child.stdout.?.reader(&.{});
35 var stdout_reader = child.stdout.?.readerStreaming(&.{});
3636 const n = try stdout_reader.interface.readSliceShort(&buf);
3737 if (!std.mem.eql(u8, buf[0..n], hello_stdout)) {
3838 testError("child stdout: '{s}'; want '{s}'", .{ buf[0..n], hello_stdout });