commit 65a6e9eee5f0c59622e97c6fd0f283bf2594d6c5 (tree)
parent f35015575ef7ef5b493cf217f5e9c7152d6b6658
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sat, 31 Aug 2024 03:28:28 +0200
std.posix: Skip a couple of tests that use fstat()/fstatat() on riscv32.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/posix/test.zig b/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);