std.posix: Skip a couple of tests that use fstat()/fstatat() on riscv32.

This commit is contained in:
Alex Rønne Petersen 2024-08-31 03:28:28 +02:00
parent f35015575e
commit 65a6e9eee5
No known key found for this signature in database

View File

@ -349,6 +349,7 @@ test "linkat with different directories" {
}
test "fstatat" {
if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstatat()`.
// enable when `fstat` and `fstatat` are implemented on Windows
if (native_os == .windows) return error.SkipZigTest;
@ -1264,6 +1265,9 @@ test "fchmodat smoke test" {
0o644,
);
posix.close(fd);
if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstatat()`.
try posix.symlinkat("regfile", tmp.dir.fd, "symlink");
const sym_mode = blk: {
const st = try posix.fstatat(tmp.dir.fd, "symlink", posix.AT.SYMLINK_NOFOLLOW);