zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit cafce8c7670e90969b1bedae0efab3df583b11dd (tree)
parent 7532a8a584730e9f5ca1237cb015eb1455c46588
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Tue, 25 Jun 2024 21:57:12 +0200

std.os.linux.test: Partially skip statx() test on riscv32.

No fstatat(), so there's no point doing the rest of it.

Diffstat:
Mlib/std/os/linux/test.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/std/os/linux/test.zig b/lib/std/os/linux/test.zig @@ -84,6 +84,8 @@ test "statx" { else => unreachable, } + if (builtin.cpu.arch == .riscv32) return error.SkipZigTest; // No fstatat, so the rest of the test is meaningless. + var stat_buf: linux.Stat = undefined; switch (linux.E.init(linux.fstatat(file.handle, "", &stat_buf, linux.AT.EMPTY_PATH))) { .SUCCESS => {},