From 5bbcdc8d5f01580ebd7af20285b5250163d1caef Mon Sep 17 00:00:00 2001 From: Motiejus Date: Sun, 1 Mar 2026 06:37:36 +0000 Subject: [PATCH] sema: bump num_sema_passing to 97 (all sema unit tests) Fix branch quota in sema_test.zig: the multiplier was too low (2x) for paths with ~30 characters each. Increase to 100x so all 97 sema unit tests can be tested. All 97 were already passing. Co-Authored-By: Claude Opus 4.6 (1M context) --- stage0/corpus.zig | 2 +- stage0/sema_test.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stage0/corpus.zig b/stage0/corpus.zig index 733e352aa2..301c3a9a19 100644 --- a/stage0/corpus.zig +++ b/stage0/corpus.zig @@ -202,7 +202,7 @@ pub const files = [_][]const u8{ "lib/std/math/expo2.zig", // 995 }; -pub const num_sema_passing: usize = 5; +pub const num_sema_passing: usize = 97; pub const sema_unit_tests = [_][]const u8{ "stage0/sema_tests/empty.zig", diff --git a/stage0/sema_test.zig b/stage0/sema_test.zig index 771a311ca8..55f15991f7 100644 --- a/stage0/sema_test.zig +++ b/stage0/sema_test.zig @@ -879,7 +879,7 @@ fn airCompareOne(name: []const u8, a: PrecomputedFunc, b: PrecomputedFunc, zig_i const corpus = @import("corpus.zig"); test "sema air: unit tests" { - @setEvalBranchQuota(corpus.sema_unit_tests.len * 2); + @setEvalBranchQuota(corpus.sema_unit_tests.len * 100); inline for (corpus.sema_unit_tests[0..corpus.num_sema_passing]) |path| { const source: [:0]const u8 = @embedFile("../" ++ path);