# std.os: Fix std.os.chdir for WASI · gitcafe/zig

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

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

Visibility: public

Requested revision: fff7f15fb88f6683f9d73565d8d59593ecf7461a

Requested commit: fff7f15fb88f6683f9d73565d8d59593ecf7461a

Commit: fff7f15fb88f6683f9d73565d8d59593ecf7461a

Tree: 2e9f2b717f57e4669e6a53d2be797a924b378660

Author: Cody Tapscott

Committer: Andrew Kelley

## Message

```
std.os: Fix std.os.chdir for WASI

Test coverage was lacking for chdir() on WASI, allowing this to
regress.

This change makes os.chdir() compile again, and improves the test
logic to use our standard CWD support for WASI.

```

## Parents

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

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