test runner: use the correct number in leak report

This commit is contained in:
Vincent Rischmann 2020-10-24 22:03:05 +02:00 committed by Veikka Tuominen
parent 3115d2f2cd
commit 59af275680

View File

@ -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);