authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-06-25 21:57:12+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-29 09:50:41+02:00
logcafce8c7670e90969b1bedae0efab3df583b11dd
treeaf3c0caa2f5db230dd4b31e3996a7a915095eaab
parent7532a8a584730e9f5ca1237cb015eb1455c46588
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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

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

1 files changed, 2 insertions(+), 0 deletions(-)

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