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
signaturebadge-check 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" {
349349}
350350
351351test "fstatat" {
352 if (builtin.cpu.arch == .riscv32 and builtin.os.tag == .linux and !builtin.link_libc) return error.SkipZigTest; // No `fstatat()`.
352353 // enable when `fstat` and `fstatat` are implemented on Windows
353354 if (native_os == .windows) return error.SkipZigTest;
354355
......@@ -1264,6 +1265,9 @@ test "fchmodat smoke test" {
12641265 0o644,
12651266 );
12661267 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
12671271 try posix.symlinkat("regfile", tmp.dir.fd, "symlink");
12681272 const sym_mode = blk: {
12691273 const st = try posix.fstatat(tmp.dir.fd, "symlink", posix.AT.SYMLINK_NOFOLLOW);