Commit d136c795af

daurnimator <quae@daurnimator.com>
2020-02-07 06:12:16
Fix bug where stdout was checked instead of stderr
1 parent 8f62759
Changed files (1)
lib
std
build
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;