Commit 31a0c2a36a

Andrew Kelley <andrew@ziglang.org>
2025-08-30 07:55:44
child process test: preemptively use streaming mode
works around #24984
1 parent 07da956
Changed files (1)
test
standalone
child_process
test/standalone/child_process/main.zig
@@ -32,7 +32,7 @@ pub fn main() !void {
 
     const hello_stdout = "hello from stdout";
     var buf: [hello_stdout.len]u8 = undefined;
-    var stdout_reader = child.stdout.?.reader(&.{});
+    var stdout_reader = child.stdout.?.readerStreaming(&.{});
     const n = try stdout_reader.interface.readSliceShort(&buf);
     if (!std.mem.eql(u8, buf[0..n], hello_stdout)) {
         testError("child stdout: '{s}'; want '{s}'", .{ buf[0..n], hello_stdout });