# doctest: handle relative paths correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: f377ea10609c1d3fb82688c51483821e318bd007

Requested commit: f377ea10609c1d3fb82688c51483821e318bd007

Commit: f377ea10609c1d3fb82688c51483821e318bd007

Tree: aedc10c9a19cf690bf24639f115ac3d59533d5ef

Author: mlugg

Committer: Alex Rønne Petersen

## Message

```
doctest: handle relative paths correctly

Evaluate all child processes in the temporary directory, and use
`std.fs.path.relative` to make every other path relative to that child
cwd instead of our cwd.

Resolves: #22119

```

## Parents

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

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