Skip to content

Commit 2169308

Browse files
committed
Fix bug where stdout was checked instead of stderr
1 parent ecccda5 commit 2169308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/build/run.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub const RunStep = struct {
182182
defer self.builder.allocator.free(stdout);
183183

184184
var stderr: []const u8 = undefined;
185-
switch (self.stdout_behavior) {
185+
switch (self.stderr_action) {
186186
.expect_exact, .expect_matches => {
187187
var stderr_file_in_stream = child.stderr.?.inStream();
188188
stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable;

0 commit comments

Comments
 (0)