File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change
1
+ const builtin = @import ("builtin" );
1
2
const std = @import ("std" );
2
3
const testing = std .testing ;
3
4
@@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void {
432
433
}
433
434
434
435
test "serialize unsigned LEB128" {
436
+ if (builtin .cpu .arch == .x86 and builtin .abi == .musl and builtin .link_mode == .dynamic ) return error .SkipZigTest ;
437
+
435
438
const max_bits = 18 ;
436
439
437
440
comptime var t = 0 ;
@@ -446,6 +449,8 @@ test "serialize unsigned LEB128" {
446
449
}
447
450
448
451
test "serialize signed LEB128" {
452
+ if (builtin .cpu .arch == .x86 and builtin .abi == .musl and builtin .link_mode == .dynamic ) return error .SkipZigTest ;
453
+
449
454
// explicitly test i0 because starting `t` at 0
450
455
// will break the while loop
451
456
try test_write_leb128 (@as (i0 , 0 ));
You can’t perform that action at this time.
0 commit comments