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" {...@@ -1380,7 +1380,7 @@ test "build and call child_process" {
1380 try testing.expectEqual(ret_val, .{ .Exited = 0 });1380 try testing.expectEqual(ret_val, .{ .Exited = 0 });
1381}1381}
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" {
1384 if (builtin.os.tag == .wasi) return error.SkipZigTest;1384 if (builtin.os.tag == .wasi) return error.SkipZigTest;
1385 const testing = std.testing;1385 const testing = std.testing;
1386 const allocator = testing.allocator;1386 const allocator = testing.allocator;
...@@ -1420,8 +1420,6 @@ test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" {...@@ -1420,8 +1420,6 @@ test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" {
1420 ;1420 ;
1421 try testing.expectEqualStrings(expected_program, out_bytes);1421 try testing.expectEqualStrings(expected_program, out_bytes);
1422 },1422 },
1423 else => {1423 else => unreachable
1424 try testing.expect(false);
1425 }
1426 }1424 }
1427}1425}