| ... | @@ -118,7 +118,8 @@ const sys_can_stack_trace = switch (std.Target.current.cpu.arch) { | ... | @@ -118,7 +118,8 @@ const sys_can_stack_trace = switch (std.Target.current.cpu.arch) { |
| 118 | | 118 | |
| 119 | else => true, | 119 | else => true, |
| 120 | }; | 120 | }; |
| 121 | const default_sys_stack_trace_frames: usize = if (sys_can_stack_trace) 4 else 0; | 121 | const default_test_stack_trace_frames: usize = if (std.builtin.is_test) 8 else 4; |
| | 122 | const default_sys_stack_trace_frames: usize = if (sys_can_stack_trace) default_test_stack_trace_frames else 0; |
| 122 | const default_stack_trace_frames: usize = switch (std.builtin.mode) { | 123 | const default_stack_trace_frames: usize = switch (std.builtin.mode) { |
| 123 | .Debug => default_sys_stack_trace_frames, | 124 | .Debug => default_sys_stack_trace_frames, |
| 124 | else => 0, | 125 | else => 0, |