# Canonicalize paths when running tests \(\#23655\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5d005a76215a00071790e191e744e9657bd2cfdd)

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

Visibility: public

Requested revision: 5d005a76215a00071790e191e744e9657bd2cfdd

Requested commit: 5d005a76215a00071790e191e744e9657bd2cfdd

Commit: 5d005a76215a00071790e191e744e9657bd2cfdd

Tree: 35cdb52225a84ae666c96743696631f1c25a67cb

Author: 张小白

Committer: GitHub

## Message

```
Canonicalize paths when running tests (#23655)

In the Windows test environment, the paths generated by `temp_tree()`
are symlink paths, which causes certain tests to fail.

I later noticed that when opening a project, we seem to always use
`canonicalize` to normalize the paths, as shown here:
https://github.com/zed-industries/zed/pull/21039.

This PR adopts a similar approach for the test environment to address
the issue.

Release Notes:

- N/A
```

## Parents

- [0f8e2e3811c5b1ed57ef43e2aba4eaa37941a41a](https://git.cafe/gitcafe/zed/commit/0f8e2e3811c5b1ed57ef43e2aba4eaa37941a41a?format=markdown)

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