authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-31 03:28:28+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-06 20:03:15+02:00
log65a6e9eee5f0c59622e97c6fd0f283bf2594d6c5
tree1ce834fdc1ea6e42bfdc08ff202bc84d66f9c5bb
parentf35015575ef7ef5b493cf217f5e9c7152d6b6658
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/posix/test.zig+4
...@@ -349,6 +349,7 @@ test "linkat with different directories" {...@@ -349,6 +349,7 @@ test "linkat with different directories" {
349}349}
350350
351test "fstatat" {351test "fstatat" {
352 if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstatat()`.
352 // enable when `fstat` and `fstatat` are implemented on Windows353 // enable when `fstat` and `fstatat` are implemented on Windows
353 if (native_os == .windows) return error.SkipZigTest;354 if (native_os == .windows) return error.SkipZigTest;
354355
...@@ -1264,6 +1265,9 @@ test "fchmodat smoke test" {...@@ -1264,6 +1265,9 @@ test "fchmodat smoke test" {
1264 0o644,1265 0o644,
1265 );1266 );
1266 posix.close(fd);1267 posix.close(fd);
1268
1269 if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstatat()`.
1270
1267 try posix.symlinkat("regfile", tmp.dir.fd, "symlink");1271 try posix.symlinkat("regfile", tmp.dir.fd, "symlink");
1268 const sym_mode = blk: {1272 const sym_mode = blk: {
1269 const st = try posix.fstatat(tmp.dir.fd, "symlink", posix.AT.SYMLINK_NOFOLLOW);1273 const st = try posix.fstatat(tmp.dir.fd, "symlink", posix.AT.SYMLINK_NOFOLLOW);