mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
test runner: use the correct number in leak report
This commit is contained in:
parent
3115d2f2cd
commit
59af275680
@ -86,7 +86,7 @@ pub fn main() anyerror!void {
|
||||
std.debug.print("{} errors were logged.\n", .{log_err_count});
|
||||
}
|
||||
if (leaks != 0) {
|
||||
std.debug.print("{} tests leaked memory.\n", .{ok_count});
|
||||
std.debug.print("{} tests leaked memory.\n", .{leaks});
|
||||
}
|
||||
if (leaks != 0 or log_err_count != 0) {
|
||||
std.process.exit(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user