aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/CheckObjectStep.zig
diff options
context:
space:
mode:
authorxEgoist <egoist@egoistic.dev>2023-04-26 00:53:19 -0500
committerVeikka Tuominen <git@vexu.eu>2023-04-27 11:01:02 +0300
commit1a455b2dd8b45fe197fcac7abb9816f5518f6ccd (patch)
treecbd0e7991fc84cb293aa22a1251592bc14e40a59 /lib/std/Build/CheckObjectStep.zig
parent396bd51c4818752f6309ff10f2d316f41598d5cd (diff)
downloadzig-1a455b2dd8b45fe197fcac7abb9816f5518f6ccd.tar.gz
zig-1a455b2dd8b45fe197fcac7abb9816f5518f6ccd.zip
test: Fix windows_spawn tmp directory cleanup
On Windows, a directory that's set as the current working directory is not allowed to be removed. This can cause error on `deleteTree` if the CWD is set to the file to be removed and will cause `error.FileBusy`. However, due to `tmp.cleanup()` ignoring the errors, the folder removal error will be ignored. The only test violating this is `windows_spawn`. As a solution, setting the parent directory to be the CWD before deletion will allow the cleanup to pass.
Diffstat (limited to 'lib/std/Build/CheckObjectStep.zig')
0 files changed, 0 insertions, 0 deletions