zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4ece507b5aa3d89adb3b99258f089aa8f48184b2 (tree)
parent d976456ef665bf0aba3a83a8e7fccb4a92b2d3b2
Author: Rabin Gaire <rabingaire20@gmail.com>
Date:   Thu, 21 Apr 2022 13:28:41 +0545

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

Diffstat:
Mlib/std/child_process.zig | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig @@ -1380,7 +1380,7 @@ test "build and call child_process" { try testing.expectEqual(ret_val, .{ .Exited = 0 }); } -test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" { +test "creating a child process with stdin and stdout behavior set to StdIo.Pipe" { if (builtin.os.tag == .wasi) return error.SkipZigTest; const testing = std.testing; const allocator = testing.allocator; @@ -1420,8 +1420,6 @@ test "creating a child process with stdin/stdout behavior set to StdIo.Pipe" { ; try testing.expectEqualStrings(expected_program, out_bytes); }, - else => { - try testing.expect(false); - } + else => unreachable } }