Commit 4ece507b5a

Rabin Gaire <rabingaire20@gmail.com>
2022-04-21 09:43:41
update test message and using unreachable keyword for unintended test code path
1 parent d976456
Changed files (1)
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
     }
 }