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

This commit is contained in:
Rabin Gaire 2022-04-21 13:28:41 +05:45
parent d976456ef6
commit 4ece507b5a

View File

@ -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
}
}