Skip to content

Commit e882956

Browse files
committed
std.leb128: Disable two tests on x86-linux-musl with dynamic linkage.
#23922
1 parent 07c93cb commit e882956

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/std/leb128.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const builtin = @import("builtin");
12
const std = @import("std");
23
const testing = std.testing;
34

@@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void {
432433
}
433434

434435
test "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

448451
test "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));

0 commit comments

Comments
 (0)