diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2024-09-16 21:52:28 -0700 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-02-20 08:44:09 +0100 |
| commit | d0e288ab1856a02d0556b9ceadd6fc6337ada905 (patch) | |
| tree | 60e5e2b63f36b02a209960cdb159551d9dfec3d3 /lib/std/Build/Step | |
| parent | 8d824dfdd06c6b0f307c6ea41dfdf316acf4a662 (diff) | |
| download | zig-d0e288ab1856a02d0556b9ceadd6fc6337ada905.tar.gz zig-d0e288ab1856a02d0556b9ceadd6fc6337ada905.zip | |
lib/std/posix/test.zig: enable disabled tests using CWD
Four tests in lib/std/posix/test.zig were disabled because they created
fixed-name files in the current working directory, and this caused
problems if tests were running in parallel with other build's tests.
This PR fixes those tests to all use `std.testing.tmpDir` to create unique
temporary names and directories.
Also clean the tests up to more consistently use `defer` to clean up, or
to just rely on tmpDir cleanup to remove individual files.
Working on these tests revealed a bunch of stale WASI code paths in
posix.zig, fixed by replacing stale `wast.AT.FDCWD` references with just
`AT.FDCWD`.
Fixes #14968.
Diffstat (limited to 'lib/std/Build/Step')
0 files changed, 0 insertions, 0 deletions
