| ... | @@ -32,7 +32,7 @@ pub fn main() !void { | ... | @@ -32,7 +32,7 @@ pub fn main() !void { |
| 32 | | 32 | |
| 33 | const hello_stdout = "hello from stdout"; | 33 | const hello_stdout = "hello from stdout"; |
| 34 | var buf: [hello_stdout.len]u8 = undefined; | 34 | var buf: [hello_stdout.len]u8 = undefined; |
| 35 | var stdout_reader = child.stdout.?.reader(&.{}); | 35 | var stdout_reader = child.stdout.?.readerStreaming(&.{}); |
| 36 | const n = try stdout_reader.interface.readSliceShort(&buf); | 36 | const n = try stdout_reader.interface.readSliceShort(&buf); |
| 37 | if (!std.mem.eql(u8, buf[0..n], hello_stdout)) { | 37 | if (!std.mem.eql(u8, buf[0..n], hello_stdout)) { |
| 38 | testError("child stdout: '{s}'; want '{s}'", .{ buf[0..n], hello_stdout }); | 38 | testError("child stdout: '{s}'; want '{s}'", .{ buf[0..n], hello_stdout }); |