diff options
| author | Frank Denis <github@pureftpd.org> | 2021-05-09 18:10:29 +0200 |
|---|---|---|
| committer | Frank Denis <github@pureftpd.org> | 2021-05-09 18:15:42 +0200 |
| commit | 4e399ef62c962d0179f715afa3e50343b2825e7d (patch) | |
| tree | 25dada4ecc63986e5a71bdd88ec2e8e52f6f74ef /lib/std/os | |
| parent | f67e756211b6e69cc8fadbb6b1ec5af1bd5c7049 (diff) | |
| download | zig-4e399ef62c962d0179f715afa3e50343b2825e7d.tar.gz zig-4e399ef62c962d0179f715afa3e50343b2825e7d.zip | |
Initialize the Stat structure
The system `stat` structure includes padding, and, on some
operating systems such as all BSDs, "spare" bytes at the end.
We can't reliably compare two `Stat` values if these are
uninitialized, while being later compared.
This is what was causing the `fstatat` test to fail on FreeBSD
since the update to LLVM 12. It was previously only passing by
accident.
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/test.zig | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/std/os/test.zig b/lib/std/os/test.zig index 7f10671b35..a677e63757 100644 --- a/lib/std/os/test.zig +++ b/lib/std/os/test.zig @@ -263,10 +263,6 @@ test "linkat with different directories" { test "fstatat" { // enable when `fstat` and `fstatat` are implemented on Windows if (builtin.os.tag == .windows) return error.SkipZigTest; - if (builtin.os.tag == .freebsd and builtin.mode == .ReleaseFast) { - // https://github.com/ziglang/zig/issues/8538 - return error.SkipZigTest; - } var tmp = tmpDir(.{}); defer tmp.cleanup(); |
