zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 59af275680ad12f7da4dcc5b41a2cab707ec2ffa (tree)
parent 3115d2f2cdc13f714740ccf024e1baedfc31c93d
Author: Vincent Rischmann <vincent@rischmann.fr>
Date:   Sat, 24 Oct 2020 22:03:05 +0200

test runner: use the correct number in leak report

Diffstat:
Mlib/std/special/test_runner.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/special/test_runner.zig b/lib/std/special/test_runner.zig @@ -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);