Commit cafce8c767

Alex Rønne Petersen <alex@alexrp.com>
2024-06-25 21:57:12
std.os.linux.test: Partially skip statx() test on riscv32.
No fstatat(), so there's no point doing the rest of it.
1 parent 7532a8a
Changed files (1)
lib
std
os
linux
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 => {},