authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-19 00:20:56+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-19 00:22:19+02:00
loge882956ef67512b52dda1bf1ccd60953dde47a4b
tree24f10a591121c4771a4e6cf4645b8e15e7126447
parent07c93cb103c8010b97a91029e15e1b238fbe5eb3
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.leb128: Disable two tests on x86-linux-musl with dynamic linkage.

https://github.com/ziglang/zig/issues/23922

1 files changed, 5 insertions(+), 0 deletions(-)

lib/std/leb128.zig+5
......@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
12const std = @import("std");
23const testing = std.testing;
34
......@@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void {
432433}
433434
434435test "serialize unsigned LEB128" {
436 if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest;
437
435438 const max_bits = 18;
436439
437440 comptime var t = 0;
......@@ -446,6 +449,8 @@ test "serialize unsigned LEB128" {
446449}
447450
448451test "serialize signed LEB128" {
452 if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest;
453
449454 // explicitly test i0 because starting `t` at 0
450455 // will break the while loop
451456 try test_write_leb128(@as(i0, 0));