authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-12-28 21:09:47-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-12-28 21:09:47-07:00
log78dcd1b23ed4ca9d4202e1613ce2ec17c7b85e5c
tree183fcf575372cb3e3a3a1ed3a4093da404068bdb
parent3b5dd48f99269cf8e944adf40657f2866adecc37

std.process: update arg iterator tests

These tests asserted there were no args passed to the test binary, but now there is an arg intentionally passed to the test binary, so the test case needed to be updated.

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/process.zig+2-1
......@@ -517,7 +517,8 @@ test "args iterator" {
517517 const given_suffix = std.fs.path.basename(prog_name);
518518
519519 testing.expect(mem.eql(u8, expected_suffix, given_suffix));
520 testing.expectEqual(it.next(ga), null);
520 testing.expect(it.skip()); // Skip over zig_exe_path, passed to the test runner
521 testing.expect(it.next(ga) == null);
521522 testing.expect(!it.skip());
522523}
523524