| author | |
| committer | |
| log | 11fabc4cbee7addbdb86d6ba0297abe8274bbbb4 |
| tree | c72e7332f1abbad22c0ae6fe74e4553c39619a74 |
| parent | 52606572309f843c043123c1f2771829e45b4b5d |
fixes #155531 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Build/Step/Run.zig+1-1| ... | ... | @@ -822,7 +822,7 @@ fn runCommand( |
| 822 | 822 | .zig_test => { |
| 823 | 823 | const prefix: []const u8 = p: { |
| 824 | 824 | if (result.stdio.test_metadata) |tm| { |
| 825 | if (tm.next_index <= tm.names.len) { | |
| 825 | if (tm.next_index > 0 and tm.next_index <= tm.names.len) { | |
| 826 | 826 | const name = tm.testName(tm.next_index - 1); |
| 827 | 827 | break :p b.fmt("while executing test '{s}', ", .{name}); |
| 828 | 828 | } |