-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix mkdir("a/b/..")
should return EEXIST
#23136
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
Conversation
Before this change `mkdir("a/b/..")` surprisingly makes a directory called `a/b/a`. It should raise EEXIST.
Before this change `mkdir("a/b/..")` surprisingly makes a directory called `a/b/a`. It should raise EEXIST.
Looks like this is another case where the errno values don't match on Windows: I don't know if we want to run all the tests on Windows all the time, but I wonder if it makes sense to have an optional way to run extra tests on Windows for changes like this that might affect it. I know that's possible with the Chromium CI, maybe we can do it on CircleCI too. |
I think we just need to remember to mark all nodefs tests as |
This test was recently added in emscripten-core#23136 but the test fails on windows due to errno mismatch. See emscripten-core#8882.
Before this change
mkdir("a/b/..")
surprisingly makes a directory calleda/b/a
. It should raise EEXIST.