authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-17 19:12:06-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-17 19:14:13-07:00
log1d3f76bbda90f810a24845c15516235d91ee12ad
tree1ce41991845c87e5536eb804da1ed12af7b07926
parent1d808d0dd20326dbdb0478f2a2f43f0b9ebb557a

stage2: skip recursion test on some hosts

In order for this test to pass, the host linking/start code needs to support explicitly setting the stack size. Zig defaults to 16 MiB stack size, which is enough to pass the test in Debug builds, however, most operating systems do not honor the stack size we request for and give a smaller amount. Eventually the goal is to pass this test on all hosts.

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

test/stage2/cbe.zig+5-1
...@@ -233,7 +233,11 @@ pub fn addCases(ctx: *TestContext) !void {...@@ -233,7 +233,11 @@ pub fn addCases(ctx: *TestContext) !void {
233 \\}233 \\}
234 , "");234 , "");
235 }235 }
236 {236 // This will make a pretty deep call stack, so this test can only be enabled
237 // on hosts where Zig's linking strategy can honor the 16 MiB (default) we
238 // link the self-hosted compiler with.
239 const host_supports_custom_stack_size = @import("builtin").target.os.tag == .linux;
240 if (host_supports_custom_stack_size) {
237 var case = ctx.exeFromCompiledC("@setEvalBranchQuota", .{});241 var case = ctx.exeFromCompiledC("@setEvalBranchQuota", .{});
238242
239 case.addCompareOutput(243 case.addCompareOutput(