Skip to content
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

Fix file permission specs on Windows #13465

Merged

Conversation

HertzDevil
Copy link
Contributor

Assuming the owner-write bit is the only bit that Crystal's standard library can reliably control on Windows, we could rewrite our specs to use that bit to determine whether a test passes or fails, even without implementing the bulk of #13233.

Depends on #13462, without which the copies permissions spec in file_utils_spec.cr would have to manually reset the source and target files' permissions at the end of the loop.

@straight-shoota
Copy link
Member

I'm marking this as draft because it depends on #13462.

@straight-shoota straight-shoota marked this pull request as draft May 15, 2023 10:04
@HertzDevil HertzDevil marked this pull request as ready for review May 17, 2023 20:59
@straight-shoota straight-shoota added this to the 1.9.0 milestone May 23, 2023
@straight-shoota straight-shoota merged commit 033de0c into crystal-lang:master May 24, 2023
46 checks passed
@HertzDevil HertzDevil deleted the spec/windows-file-permission branch May 24, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants