Skip to content

Commit 31a0c2a

Browse files
committed
child process test: preemptively use streaming mode
works around #24984
1 parent 07da956 commit 31a0c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/standalone/child_process/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 });

0 commit comments

Comments
 (0)