# std/lib: \{fs,io,posix\} test clean up · gitcafe/zig

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

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

Visibility: public

Requested revision: eace31c6b34037225a8331156a1faec9a2831beb

Requested commit: eace31c6b34037225a8331156a1faec9a2831beb

Commit: eace31c6b34037225a8331156a1faec9a2831beb

Tree: ad50e8b30a4f82c2930969a59d131f4dc2f7d245

Author: Pat Tullmann

Committer: Alex Rønne Petersen

## Message

```
std/lib: {fs,io,posix} test clean up

* use `tmp.dir.realpathAlloc()` to get full path into tmpDir instances
* use `testing.allocator` where that simplifies things (vs. manual ArenaAllocator for 1 or 2 allocs)
* Trust `TmpDir.cleanup()` to clean up contained files and sub-trees
* Remove some unnecessary absolute paths (enabling WASI to run the tests)
* Drop some no-longer necessary `[_][]const u8` casts
* Add scopes to reduce `var` usage in favor of `const`

```

## Parents

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

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