-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{fs,io,posix,debug} tests: clean up and Wasi improvements
Add `unique_fname` for creating unique-name files when testing in the default CWD (though tests should still prefer tmpDir()). Enable the tests disabled because this is racy (#14968). Add some WASI-specific behavior handling. Other cleanups of the tests: * use `realpathAlloc()`to get fullpath into tmpDir() instances * use `testing.allocator` where that simplifies things (vs. manual ArenaAllocator for 1 or 2 allocs) * Trust `TmpDir.cleanup()` to clean up sub-trees * Remove some unnecessary absolute paths (to enable WASI tests) * Drop some no-longer necessary `[_][]const u8` explicit types * Put file cleanups into `defer` Fixes #14968
- Loading branch information
Showing
4 changed files
with
332 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.