mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 06:15:21 +00:00
std.posix: Skip a couple of tests that use fstat()/fstatat() on riscv32.
This commit is contained in:
parent
f35015575e
commit
65a6e9eee5
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user