diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-06 20:12:00 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-06 20:12:00 -0700 |
| commit | f0fde1d9c2fcd1142ad1343dc2dd788435e743ef (patch) | |
| tree | 9d903f1bcb0027e6c70545066ee25ad1bb6a18a6 /lib | |
| parent | 1b610d7853b479392470d1933c81aafe70e714d4 (diff) | |
| download | zig-f0fde1d9c2fcd1142ad1343dc2dd788435e743ef.tar.gz zig-f0fde1d9c2fcd1142ad1343dc2dd788435e743ef.zip | |
std.leb128: disable regressed test due to LLVM 14
See #12031
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/leb128.zig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/std/leb128.zig b/lib/std/leb128.zig index 470bdc85ed..b18ca9fab0 100644 --- a/lib/std/leb128.zig +++ b/lib/std/leb128.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std"); const testing = std.testing; @@ -346,6 +347,13 @@ fn test_write_leb128(value: anytype) !void { } test "serialize unsigned LEB128" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .riscv64) + { + // https://github.com/ziglang/zig/issues/12031 + return error.SkipZigTest; + } + const max_bits = 18; comptime var t = 0; @@ -360,6 +368,13 @@ test "serialize unsigned LEB128" { } test "serialize signed LEB128" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .riscv64) + { + // https://github.com/ziglang/zig/issues/12031 + return error.SkipZigTest; + } + // explicitly test i0 because starting `t` at 0 // will break the while loop try test_write_leb128(@as(i0, 0)); |
