aboutsummaryrefslogtreecommitdiff
path: root/lib/std/mem.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-04-22 11:04:36 -0700
committerGitHub <noreply@github.com>2023-04-22 11:04:36 -0700
commit21aa55d34e432b677f71cbb377aa89c8cdbd1483 (patch)
tree87b831f51d09d923bfaf9f7a44477e50e773ae73 /lib/std/mem.zig
parentc7067ef6e823a0eaa87880e7a4b8bc89c0b31ab2 (diff)
parentf5cf732659d1bf3112c828ef9798db445ff53f3c (diff)
downloadzig-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.zig6
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"