mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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:
parent
7532a8a584
commit
cafce8c767
1 changed files with 2 additions and 0 deletions
|
|
@ -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 => {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue