# stage2 tests: pass cwd to child process to fix exe path · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1590ed9d6aea95e5a21e3455e8edba4cdb374f2c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1590ed9d6aea95e5a21e3455e8edba4cdb374f2c

Requested commit: 1590ed9d6aea95e5a21e3455e8edba4cdb374f2c

Commit: 1590ed9d6aea95e5a21e3455e8edba4cdb374f2c

Tree: 509e9a697be358d82553937943fdf71841e7c0a2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2 tests: pass cwd to child process to fix exe path

Previous commit broke the tests for non-Windows because we were
intending to change the cwd when running the child process. However, for
Windows we don't support passing a directory handle for cwd when
spawning child processes yet. However on Linux we do. This commit
reverts the previous one but then fixes things for all systems by
passing both cwd_dir and cwd to the child process.

```

## Parents

- [7e1e771f0260b5fd0a5cd2f7e3d669979d8f141b](https://git.cafe/gitcafe/zig/commit/7e1e771f0260b5fd0a5cd2f7e3d669979d8f141b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1590ed9d6aea95e5a21e3455e8edba4cdb374f2c?format=markdown)
