authorgravatar for rabingaire20@gmail.comRabin Gaire <rabingaire20@gmail.com> 2022-04-21 14:12:08+05:45
committergravatar for rabingaire20@gmail.comRabin Gaire <rabingaire20@gmail.com> 2022-04-21 14:12:08+05:45
log50ec55faaf4b218c4ded8a73864bbd0c85571e23
treeae155a41428e1bea1330ac4c8c9f77183ba878f8
parent4ece507b5aa3d89adb3b99258f089aa8f48184b2

ran zig fmt on changes


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/child_process.zig+3-3
......@@ -658,7 +658,7 @@ pub const ChildProcess = struct {
658658 .Pipe => {
659659 const idx: usize = if (std_fileno == 0) 0 else 1;
660660 try actions.dup2(pipe_fd[idx], std_fileno);
661 try actions.close(pipe_fd[1-idx]);
661 try actions.close(pipe_fd[1 - idx]);
662662 },
663663 .Close => try actions.close(std_fileno),
664664 .Inherit => {},
......@@ -1408,7 +1408,7 @@ test "creating a child process with stdin and stdout behavior set to StdIo.Pipe"
14081408
14091409 const out_bytes = try child_process.stdout.?.reader().readAllAlloc(allocator, std.math.maxInt(usize));
14101410 defer allocator.free(out_bytes);
1411
1411
14121412 switch (try child_process.wait()) {
14131413 .Exited => |code| if (code == 0) {
14141414 const expected_program =
......@@ -1420,6 +1420,6 @@ test "creating a child process with stdin and stdout behavior set to StdIo.Pipe"
14201420 ;
14211421 try testing.expectEqualStrings(expected_program, out_bytes);
14221422 },
1423 else => unreachable
1423 else => unreachable,
14241424 }
14251425}