srctree

Jakub Konka parent 55c085b8 7ba2453b
test/link/elf: do not check for $thunk in thunks tests for now

Andrew and I have discovered that on Linux max peak rss valueis taken to be max(build_runner, test_suite) and since the thunkstest emit a huge binary, we will easily exceed the declared maximumfor any of the test suites. This can be worked around for now by notchecking for $thunk symbols in this test since it doesn't reallyyield any additional information; however ideally we would implementper-thread local temp arena that can be freed.

inlinesplit
test/link/elf.zig added: 1, removed: 13, total 0
@@ -2698,12 +2698,6 @@ fn testThunks(b: *Build, opts: Options) *Step {
run.expectStdOutEqual("bar=42, foo=0, foobar=42");
run.expectExitCode(0);
test_step.dependOn(&run.step);
 
const check = exe.checkObject();
check.max_bytes = std.math.maxInt(u32);
check.checkInSymtab();
check.checkContains("__libc_start_main$thunk");
test_step.dependOn(&check.step);
}
 
{
@@ -2714,12 +2708,6 @@ fn testThunks(b: *Build, opts: Options) *Step {
run.expectStdOutEqual("bar=42, foo=0, foobar=42");
run.expectExitCode(0);
test_step.dependOn(&run.step);
 
const check = exe.checkObject();
check.max_bytes = std.math.maxInt(u32);
check.checkInSymtab();
check.checkContains("__libc_start_main$thunk");
test_step.dependOn(&check.step);
}
 
return test_step;