mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Fix bug where stdout was checked instead of stderr
This commit is contained in:
parent
8f627593eb
commit
d136c795af
@ -185,7 +185,7 @@ pub const RunStep = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var stderr: []const u8 = undefined;
|
var stderr: []const u8 = undefined;
|
||||||
switch (self.stdout_behavior) {
|
switch (self.stderr_action) {
|
||||||
.expect_exact, .expect_matches => {
|
.expect_exact, .expect_matches => {
|
||||||
var stderr_file_in_stream = child.stderr.?.inStream();
|
var stderr_file_in_stream = child.stderr.?.inStream();
|
||||||
stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable;
|
stderr = stderr_file_in_stream.stream.readAllAlloc(self.builder.allocator, max_stdout_size) catch unreachable;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user