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-08 13:53:06+02:00
logf587d753d15c6847873c29ca04617dc4ccec726a
tree89394b821d826ecf7b85331f03770f46d6d493a6
parent25a375d35808cbc7b4817560f193efd29b51b724
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
......@@ -2898,15 +2898,6 @@ fn addOneModuleTest(
28982898 const libc_suffix = if (test_target.link_libc == true) "-libc" else "";
28992899 const model_txt = target.cpu.model.name;
29002900
2901 // These emulated targets need a lot more RAM for unknown reasons.
2902 const max_rss = if (mem.eql(u8, options.name, "std") and
2903 (target.cpu.arch == .hexagon or
2904 (target.cpu.arch.isRISCV() and !resolved_target.query.isNative()) or
2905 target.cpu.arch.isWasm()))
2906 options.max_rss * 2
2907 else
2908 options.max_rss;
2909
29102901 const these_tests = b.addTest(.{
29112902 .root_module = b.createModule(.{
29122903 .root_source_file = b.path(options.root_src),
......@@ -2918,7 +2909,7 @@ fn addOneModuleTest(
29182909 .sanitize_thread = options.sanitize_thread,
29192910 .single_threaded = test_target.single_threaded,
29202911 }),
2921 .max_rss = max_rss,
2912 .max_rss = options.max_rss,
29222913 .filters = options.test_filters,
29232914 .use_llvm = test_target.use_llvm,
29242915 .use_lld = test_target.use_lld,