commit 03ed0a59e337d89c9650cc8a70ff431b66ee8671 (tree) parent 9d0a4b60e1c715238f96a64c45619a680f94c300 Author: Cody Tapscott <topolarity@tapscott.me> Date: Wed, 19 Oct 2022 12:14:18 -0700 std.mem: Skip `read/writePackedInt` test on WASM32/64 Diffstat:
| M | lib/std/mem.zig | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/std/mem.zig b/lib/std/mem.zig @@ -3700,6 +3700,13 @@ pub fn alignInSlice(slice: anytype, comptime new_alignment: usize) ?AlignedSlice } test "read/write(Var)PackedInt" { + switch (builtin.cpu.arch) { + // This test generates too much code to execute on WASI. + // LLVM backend fails with "too many locals: locals exceed maximum" + .wasm32, .wasm64 => return error.SkipZigTest, + else => {}, + } + const foreign_endian: Endian = if (native_endian == .Big) .Little else .Big; const expect = std.testing.expect; var prng = std.rand.DefaultPrng.init(1234);