diff options
| author | xEgoist <egoist@egoistic.dev> | 2023-04-26 00:53:19 -0500 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-04-27 11:01:02 +0300 |
| commit | 1a455b2dd8b45fe197fcac7abb9816f5518f6ccd (patch) | |
| tree | cbd0e7991fc84cb293aa22a1251592bc14e40a59 /src/Module.zig | |
| parent | 396bd51c4818752f6309ff10f2d316f41598d5cd (diff) | |
| download | zig-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 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
