# doctest: handle relative paths correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: 8e72a25285b5e782ee44828b6d1904d91fb16a29

Requested commit: 8e72a25285b5e782ee44828b6d1904d91fb16a29

Commit: 8e72a25285b5e782ee44828b6d1904d91fb16a29

Tree: fbf331a2dab8368be364a289972b59cbfc13d33a

Author: mlugg

Committer: Matthew Lugg

## 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

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

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