Commit 65a6e9eee5
Changed files (1)
lib
std
posix
lib/std/posix/test.zig
@@ -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);