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("");...@@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
17/// This should only be used in temporary test programs.17/// This should only be used in temporary test programs.
18pub const allocator = allocator_instance.allocator();18pub const allocator = allocator_instance.allocator();
19pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{19pub 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,
21 .resize_stack_traces = true,21 .resize_stack_traces = true,
22 // A unique value so that when a default-constructed22 // A unique value so that when a default-constructed
23 // GeneralPurposeAllocator is incorrectly passed to testing allocator, or23 // GeneralPurposeAllocator is incorrectly passed to testing allocator, or