mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.mem: Skip read/writePackedInt test on WASM32/64
This commit is contained in:
parent
9d0a4b60e1
commit
03ed0a59e3
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user