From 5c6f5e6cf2d6fdce2083e1f946a1f5ee407dbdf9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 26 Jul 2024 15:38:12 -0700 Subject: [PATCH] test runner: avoid spawning progress thread when instrumented because it causes unwanted concurrent accesses to pc tracking --- lib/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 index 3e97062982..be793376a5 100644 --- 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, });