| ... | ... | @@ -658,7 +658,7 @@ pub const ChildProcess = struct { |
| 658 | 658 | .Pipe => { |
| 659 | 659 | const idx: usize = if (std_fileno == 0) 0 else 1; |
| 660 | 660 | try actions.dup2(pipe_fd[idx], std_fileno); |
| 661 | | try actions.close(pipe_fd[1-idx]); |
| 661 | try actions.close(pipe_fd[1 - idx]); |
| 662 | 662 | }, |
| 663 | 663 | .Close => try actions.close(std_fileno), |
| 664 | 664 | .Inherit => {}, |
| ... | ... | @@ -1408,7 +1408,7 @@ test "creating a child process with stdin and stdout behavior set to StdIo.Pipe" |
| 1408 | 1408 | |
| 1409 | 1409 | const out_bytes = try child_process.stdout.?.reader().readAllAlloc(allocator, std.math.maxInt(usize)); |
| 1410 | 1410 | defer allocator.free(out_bytes); |
| 1411 | | |
| 1411 | |
| 1412 | 1412 | switch (try child_process.wait()) { |
| 1413 | 1413 | .Exited => |code| if (code == 0) { |
| 1414 | 1414 | const expected_program = |
| ... | ... | @@ -1420,6 +1420,6 @@ test "creating a child process with stdin and stdout behavior set to StdIo.Pipe" |
| 1420 | 1420 | ; |
| 1421 | 1421 | try testing.expectEqualStrings(expected_program, out_bytes); |
| 1422 | 1422 | }, |
| 1423 | | else => unreachable |
| 1423 | else => unreachable, |
| 1424 | 1424 | } |
| 1425 | 1425 | } |