diff --git a/lib/std/process.zig b/lib/std/process.zig index 275c8bc77bbb177f6f5bbc2c272d42aa70edae49..5eb58671a9b15e2b6b4d52450ddc1d80398213d5 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -517,7 +517,8 @@ test "args iterator" { const given_suffix = std.fs.path.basename(prog_name); testing.expect(mem.eql(u8, expected_suffix, given_suffix)); - testing.expectEqual(it.next(ga), null); + testing.expect(it.skip()); // Skip over zig_exe_path, passed to the test runner + testing.expect(it.next(ga) == null); testing.expect(!it.skip()); }