mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
test: skip dumpCurrentStackTrace test on architectures with no unwind support
This commit is contained in:
parent
e06bcd74c3
commit
abd73083e4
2 changed files with 12 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ const Config = struct {
|
|||
|
||||
const PerMode = struct {
|
||||
expect: []const u8,
|
||||
exclude_arch: []const std.Target.Cpu.Arch = &.{},
|
||||
exclude_os: []const std.Target.Os.Tag = &.{},
|
||||
error_tracing: ?bool = null,
|
||||
};
|
||||
|
|
@ -59,6 +60,7 @@ fn addExpect(
|
|||
use_llvm: bool,
|
||||
mode_config: Config.PerMode,
|
||||
) void {
|
||||
for (mode_config.exclude_arch) |tag| if (tag == builtin.cpu.arch) return;
|
||||
for (mode_config.exclude_os) |tag| if (tag == builtin.os.tag) return;
|
||||
|
||||
const b = self.b;
|
||||
|
|
|
|||
|
|
@ -792,6 +792,16 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
|
|||
\\}
|
||||
,
|
||||
.Debug = .{
|
||||
// std.debug.sys_can_stack_trace
|
||||
.exclude_arch = &.{
|
||||
.loongarch32,
|
||||
.loongarch64,
|
||||
.mips,
|
||||
.mipsel,
|
||||
.mips64,
|
||||
.mips64el,
|
||||
.s390x,
|
||||
},
|
||||
.exclude_os = &.{
|
||||
.openbsd, // integer overflow
|
||||
.windows, // TODO intermittent failures
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue