zig

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

commit 5c6f5e6cf2d6fdce2083e1f946a1f5ee407dbdf9 (tree)
parent 624fa8523a2c4158ddc9fce231181a9e8583a633
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 26 Jul 2024 15:38:12 -0700

test runner: avoid spawning progress thread when instrumented

because it causes unwanted concurrent accesses to pc tracking

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

diff --git a/lib/compiler/test_runner.zig b/lib/compiler/test_runner.zig @@ -166,7 +166,7 @@ fn mainTerminal() void { var skip_count: usize = 0; var fail_count: usize = 0; var fuzz_count: usize = 0; - const root_node = std.Progress.start(.{ + const root_node = if (builtin.fuzz) std.Progress.Node.none else std.Progress.start(.{ .root_name = "Test", .estimated_total_items = test_fn_list.len, });