| ... | @@ -368,6 +368,11 @@ test "fstatat" { | ... | @@ -368,6 +368,11 @@ test "fstatat" { |
| 368 | // now repeat but using `fstatat` instead | 368 | // now repeat but using `fstatat` instead |
| 369 | const flags = if (native_os == .wasi) 0x0 else posix.AT.SYMLINK_NOFOLLOW; | 369 | const flags = if (native_os == .wasi) 0x0 else posix.AT.SYMLINK_NOFOLLOW; |
| 370 | const statat = try posix.fstatat(tmp.dir.fd, "file.txt", flags); | 370 | const statat = try posix.fstatat(tmp.dir.fd, "file.txt", flags); |
| | 371 | |
| | 372 | // s390x-linux does not have nanosecond precision for fstat(), but it does for fstatat(). As a |
| | 373 | // result, comparing the two structures is doomed to fail. |
| | 374 | if (builtin.cpu.arch == .s390x and builtin.os.tag == .linux) return error.SkipZigTest; |
| | 375 | |
| 371 | try expectEqual(stat, statat); | 376 | try expectEqual(stat, statat); |
| 372 | } | 377 | } |
| 373 | | 378 | |