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

No fstatat(), so there's no point doing the rest of it.
This commit is contained in:
Alex Rønne Petersen 2024-06-25 21:57:12 +02:00
parent 7532a8a584
commit cafce8c767
No known key found for this signature in database

View File

@ -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 => {},