authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-08 08:56:37+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 09:46:20+02:00
log4bd0b784a2b9d83c3f16ab33c287f75ec79ad91e
treeb86cb47fd5e481d2d6ff659896c1980447bd228c
parent69f70fff6d828573ecab6325ee1417a9a82ba96e
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: remove max_rss special cases


1 files changed, 1 insertions(+), 10 deletions(-)

test/tests.zig+1-10
......@@ -2914,15 +2914,6 @@ fn addOneModuleTest(
29142914 const libc_suffix = if (test_target.link_libc == true) "-libc" else "";
29152915 const model_txt = target.cpu.model.name;
29162916
2917 // These emulated targets need a lot more RAM for unknown reasons.
2918 const max_rss = if (mem.eql(u8, options.name, "std") and
2919 (target.cpu.arch == .hexagon or
2920 (target.cpu.arch.isRISCV() and !resolved_target.query.isNative()) or
2921 target.cpu.arch.isWasm()))
2922 options.max_rss * 2
2923 else
2924 options.max_rss;
2925
29262917 const these_tests = b.addTest(.{
29272918 .root_module = b.createModule(.{
29282919 .root_source_file = b.path(options.root_src),
......@@ -2934,7 +2925,7 @@ fn addOneModuleTest(
29342925 .sanitize_thread = options.sanitize_thread,
29352926 .single_threaded = test_target.single_threaded,
29362927 }),
2937 .max_rss = max_rss,
2928 .max_rss = options.max_rss,
29382929 .filters = options.test_filters,
29392930 .use_llvm = test_target.use_llvm,
29402931 .use_lld = test_target.use_lld,