authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-19 12:14:18-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-28 08:41:04-07:00
log03ed0a59e337d89c9650cc8a70ff431b66ee8671
treedf63568d8443a42b202a784c190fa4922e9e104b
parent9d0a4b60e1c715238f96a64c45619a680f94c300

std.mem: Skip `read/writePackedInt` test on WASM32/64


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

lib/std/mem.zig+7
...@@ -3700,6 +3700,13 @@ pub fn alignInSlice(slice: anytype, comptime new_alignment: usize) ?AlignedSlice...@@ -3700,6 +3700,13 @@ pub fn alignInSlice(slice: anytype, comptime new_alignment: usize) ?AlignedSlice
3700}3700}
37013701
3702test "read/write(Var)PackedInt" {3702test "read/write(Var)PackedInt" {
3703 switch (builtin.cpu.arch) {
3704 // This test generates too much code to execute on WASI.
3705 // LLVM backend fails with "too many locals: locals exceed maximum"
3706 .wasm32, .wasm64 => return error.SkipZigTest,
3707 else => {},
3708 }
3709
3703 const foreign_endian: Endian = if (native_endian == .Big) .Little else .Big;3710 const foreign_endian: Endian = if (native_endian == .Big) .Little else .Big;
3704 const expect = std.testing.expect;3711 const expect = std.testing.expect;
3705 var prng = std.rand.DefaultPrng.init(1234);3712 var prng = std.rand.DefaultPrng.init(1234);