mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
parent
5260657230
commit
11fabc4cbe
@ -822,7 +822,7 @@ fn runCommand(
|
||||
.zig_test => {
|
||||
const prefix: []const u8 = p: {
|
||||
if (result.stdio.test_metadata) |tm| {
|
||||
if (tm.next_index <= tm.names.len) {
|
||||
if (tm.next_index > 0 and tm.next_index <= tm.names.len) {
|
||||
const name = tm.testName(tm.next_index - 1);
|
||||
break :p b.fmt("while executing test '{s}', ", .{name});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user