aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-29 22:55:44 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-30 00:48:50 -0700
commit31a0c2a36a09fd3cd82f061b090fc12c3239dfb1 (patch)
tree3bb2e8365fe2e9f44e60bf5f095311c822d66460
parent07da9567e67643ed3a252ba1d10379ef23a6f682 (diff)
downloadzig-31a0c2a36a09fd3cd82f061b090fc12c3239dfb1.tar.gz
zig-31a0c2a36a09fd3cd82f061b090fc12c3239dfb1.zip
child process test: preemptively use streaming mode
works around #24984
-rw-r--r--test/standalone/child_process/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/standalone/child_process/main.zig b/test/standalone/child_process/main.zig
index ff7b4ea56d..4be5e1fec3 100644
--- a/test/standalone/child_process/main.zig
+++ b/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 });