diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-22 11:04:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-22 11:04:36 -0700 |
| commit | 21aa55d34e432b677f71cbb377aa89c8cdbd1483 (patch) | |
| tree | 87b831f51d09d923bfaf9f7a44477e50e773ae73 /lib/std/mem.zig | |
| parent | c7067ef6e823a0eaa87880e7a4b8bc89c0b31ab2 (diff) | |
| parent | f5cf732659d1bf3112c828ef9798db445ff53f3c (diff) | |
| download | zig-21aa55d34e432b677f71cbb377aa89c8cdbd1483.tar.gz zig-21aa55d34e432b677f71cbb377aa89c8cdbd1483.zip | |
Merge pull request #15356 from jacobly0/cbe-std-tests
cbe: enable CI for std tests
Diffstat (limited to 'lib/std/mem.zig')
| -rw-r--r-- | lib/std/mem.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/mem.zig b/lib/std/mem.zig index 6b48b7ebde..940882e930 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -1504,6 +1504,8 @@ test "comptime read/write int" { } test "readIntBig and readIntLittle" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; + try testing.expect(readIntSliceBig(u0, &[_]u8{}) == 0x0); try testing.expect(readIntSliceLittle(u0, &[_]u8{}) == 0x0); @@ -1795,6 +1797,8 @@ pub fn writeVarPackedInt(bytes: []u8, bit_offset: usize, bit_count: usize, value } test "writeIntBig and writeIntLittle" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; + var buf0: [0]u8 = undefined; var buf1: [1]u8 = undefined; var buf2: [2]u8 = undefined; @@ -4011,6 +4015,8 @@ pub fn alignInSlice(slice: anytype, comptime new_alignment: usize) ?AlignedSlice } test "read/write(Var)PackedInt" { + if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; + switch (builtin.cpu.arch) { // This test generates too much code to execute on WASI. // LLVM backend fails with "too many locals: locals exceed maximum" |
