zig

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

commit 859cbef8a41dfbfde9c8caab00272b77912d3f0b (tree)
parent 16a91e6a4591d3d1198c0f0eaee9266333afd35e
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 21 Oct 2019 19:01:08 -0400

test runner: refresh display before running test

This makes it so that when a test fails quickly, and writes output, it
will do so after the test name is printed.

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

diff --git a/lib/std/special/test_runner.zig b/lib/std/special/test_runner.zig @@ -15,6 +15,7 @@ pub fn main() anyerror!void { for (test_fn_list) |test_fn, i| { var test_node = root_node.start(test_fn.name, null); test_node.activate(); + progress.refresh(); if (test_fn.func()) |_| { ok_count += 1; test_node.end();