zig/test/standalone/windows_spawn
xEgoist 1a455b2dd8 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.
2023-04-27 11:01:02 +03:00
..
build.zig windows_spawn standalone test: test on native OS 2023-03-15 10:48:15 -07:00
hello.zig standalone tests: Add windows spawn test 2022-12-18 03:55:28 -08:00
main.zig test: Fix windows_spawn tmp directory cleanup 2023-04-27 11:01:02 +03:00