Commit abd73083e4
Changed files (2)
test
test/src/StackTrace.zig
@@ -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;
test/stack_traces.zig
@@ -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