zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit d136c795affe9d3a7522eefe3ccc098a52434de0 (tree)
parent 8f627593ebb7ce073e43f06235fe1d9b9c1a1579
Author: daurnimator <quae@daurnimator.com>
Date:   Fri,  7 Feb 2020 16:12:16 +1100

Fix bug where stdout was checked instead of stderr

Diffstat:
Mlib/std/build/run.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/build/run.zig b/lib/std/build/run.zig @@ -185,7 +185,7 @@ pub const RunStep = struct { }; var stderr: []const u8 = undefined; - switch (self.stdout_behavior) { + switch (self.stderr_action) { .expect_exact, .expect_matches => { var stderr_file_in_stream = child.stderr.?.inStream(); stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable;