authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-06 14:46:16-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-06 14:46:16-08:00
logff8e7597056aebc67213fff0b4942a66d0a4e1dd
tree32b8718a59aa1c06fdab95d052bc818681d110b6
parentd0e1a6a23de8620a42829a95343b297cefc1c7a4

std.testing: don't ask wasm to stack trace


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

lib/std/testing.zig+1-1
......@@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
1717/// This should only be used in temporary test programs.
1818pub const allocator = allocator_instance.allocator();
1919pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{
20 .stack_trace_frames = 10,
20 .stack_trace_frames = if (std.debug.sys_can_stack_trace) 10 else 0,
2121 .resize_stack_traces = true,
2222 // A unique value so that when a default-constructed
2323 // GeneralPurposeAllocator is incorrectly passed to testing allocator, or