| ... | @@ -185,7 +185,7 @@ pub const RunStep = struct { | ... | @@ -185,7 +185,7 @@ pub const RunStep = struct { |
| 185 | }; | 185 | }; |
| 186 | | 186 | |
| 187 | var stderr: []const u8 = undefined; | 187 | var stderr: []const u8 = undefined; |
| 188 | switch (self.stdout_behavior) { | 188 | switch (self.stderr_action) { |
| 189 | .expect_exact, .expect_matches => { | 189 | .expect_exact, .expect_matches => { |
| 190 | var stderr_file_in_stream = child.stderr.?.inStream(); | 190 | var stderr_file_in_stream = child.stderr.?.inStream(); |
| 191 | stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable; | 191 | stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable; |