From cafce8c7670e90969b1bedae0efab3df583b11dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 25 Jun 2024 21:57:12 +0200 Subject: [PATCH] std.os.linux.test: Partially skip statx() test on riscv32. No fstatat(), so there's no point doing the rest of it. --- lib/std/os/linux/test.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/os/linux/test.zig b/lib/std/os/linux/test.zig index 0f1349af20..6e70dbcac5 100644 --- 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 => {},