| author | |
| committer | |
| log | abd73083e423fa1422aa64575e357b85c17a5101 |
| tree | 83d203c4e6b3ef62d506d891500ced286190225b |
| parent | e06bcd74c3d7287dfb458130cde0c72c7ef97698 |
| signature |
2 files changed, 12 insertions(+), 0 deletions(-)
test/src/StackTrace.zig+2| ... | ... | @@ -15,6 +15,7 @@ const Config = struct { |
| 15 | 15 | |
| 16 | 16 | const PerMode = struct { |
| 17 | 17 | expect: []const u8, |
| 18 | exclude_arch: []const std.Target.Cpu.Arch = &.{}, | |
| 18 | 19 | exclude_os: []const std.Target.Os.Tag = &.{}, |
| 19 | 20 | error_tracing: ?bool = null, |
| 20 | 21 | }; |
| ... | ... | @@ -59,6 +60,7 @@ fn addExpect( |
| 59 | 60 | use_llvm: bool, |
| 60 | 61 | mode_config: Config.PerMode, |
| 61 | 62 | ) void { |
| 63 | for (mode_config.exclude_arch) |tag| if (tag == builtin.cpu.arch) return; | |
| 62 | 64 | for (mode_config.exclude_os) |tag| if (tag == builtin.os.tag) return; |
| 63 | 65 | |
| 64 | 66 | const b = self.b; |
test/stack_traces.zig+10| ... | ... | @@ -792,6 +792,16 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 792 | 792 | \\} |
| 793 | 793 | , |
| 794 | 794 | .Debug = .{ |
| 795 | // std.debug.sys_can_stack_trace | |
| 796 | .exclude_arch = &.{ | |
| 797 | .loongarch32, | |
| 798 | .loongarch64, | |
| 799 | .mips, | |
| 800 | .mipsel, | |
| 801 | .mips64, | |
| 802 | .mips64el, | |
| 803 | .s390x, | |
| 804 | }, | |
| 795 | 805 | .exclude_os = &.{ |
| 796 | 806 | .openbsd, // integer overflow |
| 797 | 807 | .windows, // TODO intermittent failures |