diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-19 00:20:56 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-19 00:22:19 +0200 |
| commit | e882956ef67512b52dda1bf1ccd60953dde47a4b (patch) | |
| tree | 24f10a591121c4771a4e6cf4645b8e15e7126447 /lib/std | |
| parent | 07c93cb103c8010b97a91029e15e1b238fbe5eb3 (diff) | |
| download | zig-e882956ef67512b52dda1bf1ccd60953dde47a4b.tar.gz zig-e882956ef67512b52dda1bf1ccd60953dde47a4b.zip | |
std.leb128: Disable two tests on x86-linux-musl with dynamic linkage.
https://github.com/ziglang/zig/issues/23922
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/leb128.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/leb128.zig b/lib/std/leb128.zig index 2a5d9b20fc..dd630b1d29 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; @@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void { } test "serialize unsigned LEB128" { + if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest; + const max_bits = 18; comptime var t = 0; @@ -446,6 +449,8 @@ test "serialize unsigned LEB128" { } test "serialize signed LEB128" { + if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest; + // explicitly test i0 because starting `t` at 0 // will break the while loop try test_write_leb128(@as(i0, 0)); |
