Skip to content

Commit

Permalink
std.mem: Skip read/writePackedInt test on WASM32/64
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Oct 19, 2022
1 parent f72adea commit 4d20e11
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/std/mem.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d20e11

Please sign in to comment.