mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 12:33:19 +00:00
update test message and using unreachable keyword for unintended test code path
This commit is contained in:
parent
d976456ef6
commit
4ece507b5a
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user