test: skip dumpCurrentStackTrace test on architectures with no unwind support

This commit is contained in:
Alex Rønne Petersen 2025-09-17 09:20:14 +02:00
parent e06bcd74c3
commit abd73083e4
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -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