| ... | @@ -1,3 +1,4 @@ | ... | @@ -1,3 +1,4 @@ |
| | 1 | const builtin = @import("builtin"); |
| 1 | const std = @import("std"); | 2 | const std = @import("std"); |
| 2 | const testing = std.testing; | 3 | const testing = std.testing; |
| 3 | | 4 | |
| ... | @@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void { | ... | @@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void { |
| 432 | } | 433 | } |
| 433 | | 434 | |
| 434 | test "serialize unsigned LEB128" { | 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 | const max_bits = 18; | 438 | const max_bits = 18; |
| 436 | | 439 | |
| 437 | comptime var t = 0; | 440 | comptime var t = 0; |
| ... | @@ -446,6 +449,8 @@ test "serialize unsigned LEB128" { | ... | @@ -446,6 +449,8 @@ test "serialize unsigned LEB128" { |
| 446 | } | 449 | } |
| 447 | | 450 | |
| 448 | test "serialize signed LEB128" { | 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 | // explicitly test i0 because starting `t` at 0 | 454 | // explicitly test i0 because starting `t` at 0 |
| 450 | // will break the while loop | 455 | // will break the while loop |
| 451 | try test_write_leb128(@as(i0, 0)); | 456 | try test_write_leb128(@as(i0, 0)); |