mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
std.testing: don't ask wasm to stack trace
This commit is contained in:
parent
d0e1a6a23d
commit
ff8e759705
@ -17,7 +17,7 @@ var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
|
||||
/// This should only be used in temporary test programs.
|
||||
pub const allocator = allocator_instance.allocator();
|
||||
pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{
|
||||
.stack_trace_frames = 10,
|
||||
.stack_trace_frames = if (std.debug.sys_can_stack_trace) 10 else 0,
|
||||
.resize_stack_traces = true,
|
||||
// A unique value so that when a default-constructed
|
||||
// GeneralPurposeAllocator is incorrectly passed to testing allocator, or
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user