mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
test harness: fix not honoring one_test_case_per_file
I regressed this in 9aa431cba34699ae35f7905398a0c8263b2ad453. thanks @topolarity for pointing out the issue
This commit is contained in:
parent
9aa431cba3
commit
12e1304805
@ -698,7 +698,9 @@ pub const TestContext = struct {
|
||||
.output_mode = output_mode,
|
||||
.files = std.ArrayList(TestContext.File).init(ctx.cases.allocator),
|
||||
}) catch @panic("out of memory");
|
||||
break :case &ctx.cases.items[ctx.cases.items.len - 1];
|
||||
const case = &ctx.cases.items[ctx.cases.items.len - 1];
|
||||
opt_case = case;
|
||||
break :case case;
|
||||
};
|
||||
if (one_test_case_per_file) {
|
||||
case.name = case_name;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user