From a39fa8fac6d1fe5a86c29f804e44594e0b699ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Thu, 17 Sep 2026 17:36:32 +0200 Subject: [PATCH] test_runner: keep unnamed refAllDecls tests out of the slowest list The Zig 0.16 port of SlowTracker.endTiming dropped the early return for unnamed tests and discarded the flag, so the refAllDecls blocks were timed and queued like real tests. With a filter that matches nothing they were the only candidates and filled the "Slowest 5 tests" output. --- src/test_runner.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test_runner.zig b/src/test_runner.zig index 928986aca..5e56afcaa 100644 --- a/src/test_runner.zig +++ b/src/test_runner.zig @@ -345,7 +345,9 @@ const SlowTracker = struct { const start = self.start; self.start = timestamp; const ns: u64 = @intCast(start.durationTo(timestamp).toNanoseconds()); - _ = is_unnamed_test; + if (is_unnamed_test) { + return ns; + } var slowest = &self.slowest;