authorgravatar for rabingaire20@gmail.comRabin Gaire <rabingaire20@gmail.com> 2022-04-21 13:28:41+05:45
committergravatar for rabingaire20@gmail.comRabin Gaire <rabingaire20@gmail.com> 2022-04-21 13:28:41+05:45
log4ece507b5aa3d89adb3b99258f089aa8f48184b2
tree174f30fe1fc1eda65abfbc9d09875e29e64d2dcf
parentd976456ef665bf0aba3a83a8e7fccb4a92b2d3b2

update test message and using unreachable keyword for unintended test code path


1 files changed, 2 insertions(+), 4 deletions(-)

lib/std/child_process.zig+2-4
......@@ -1380,7 +1380,7 @@ test "build and call child_process" {
13801380 try testing.expectEqual(ret_val, .{ .Exited = 0 });
13811381}
13821382
1383test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" {
1383test "creating a child process with stdin and stdout behavior set to StdIo.Pipe" {
13841384 if (builtin.os.tag == .wasi) return error.SkipZigTest;
13851385 const testing = std.testing;
13861386 const allocator = testing.allocator;
......@@ -1420,8 +1420,6 @@ test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" {
14201420 ;
14211421 try testing.expectEqualStrings(expected_program, out_bytes);
14221422 },
1423 else => {
1424 try testing.expect(false);
1425 }
1423 else => unreachable
14261424 }
14271425}