From d136c795affe9d3a7522eefe3ccc098a52434de0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 7 Feb 2020 16:12:16 +1100 Subject: [PATCH] Fix bug where stdout was checked instead of stderr --- lib/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 index dc4e0df898..b10476fcf0 100644 --- 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;