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

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

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

Visibility: public

Requested revision: a0af3c7a19c8f60f740e9a8c178ce19d85b26256

Requested commit: a0af3c7a19c8f60f740e9a8c178ce19d85b26256

Commit: a0af3c7a19c8f60f740e9a8c178ce19d85b26256

Tree: f1dca4f8c42e8fbd1a57e8a5bf991a53fcc0b02f

Author: Cody Tapscott

Committer: Veikka Tuominen

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

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

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