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

Fixed crash in posix.open when TMPFILE=true and DIRECTORY=false #20387

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

CPestka
Copy link
Contributor

@CPestka CPestka commented Jun 22, 2024

Fixes #20378.

As said in the issue, I think it would also be reasonable to solve this via returning an error instead.

@CPestka
Copy link
Contributor Author

CPestka commented Jun 23, 2024

I saw some disabled tests in this file, due to #14968.
I don't think these new tests would interfere with that, but i'm not entirely sure.


Also the tests are currently only run for linux, which is overly restrictive, but I'm not entirely sure how to only enable the tests for the platforms that have .O flags, smth like @hasDecl(posix, "O") does no work, as O is defined for these, but is instead "cough" via a compileError prong. The "last resort" i guess would be to just list the relevant posix platforms manually.

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.

std.posix.open runs into unreachable when used to open a tmp file
1 participant