Skip to content

Add . and .. tests for std.fs functions #8879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2021

Conversation

squeek502
Copy link
Collaborator

@squeek502 squeek502 commented May 23, 2021

These tests check that . and .. are able to be handled by the std.fs functions. Before #7664, these tests would have failed on Windows.

Closes #4659

EDIT: Note that this doesn't test the full fs.Dir API, but it does test all functions that have a fooAbsolute counterpart (except updateFile which I will file an issue about shortly).
EDIT#2: The updateFile thing was my mistake actually, will add it into this PR.

squeek502 added 2 commits May 23, 2021 16:22
These tests check that . and .. are able to be handled by the std.fs functions. Before ziglang#7664, these tests would have failed on Windows.

Closes ziglang#4659
@andrewrk andrewrk merged commit 8fa6ca6 into ziglang:master May 24, 2021
@marler8997
Copy link
Contributor

More tests! Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relative paths on Windows: when to resolve . and .. ?
3 participants