-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Windows] Added a test for _getFilesystemRepresentation #2367
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
fdb10d4
to
75dda63
Compare
@gmittert would you mind rebasing this change? I think most of the issues are taken care of, but I think it would get good ensure that everything is merged before closing this out. |
@compnerd looks like you got all the ones I found. The only thing left is the test that I added. I've rebased the change to just be the added test now. |
This ensures that paths are properly normalized when handed off to win32 functions.
@swift-ci please test |
@swift-ci please test Linux platform |
"\(tmpPath)\\testfile", // C:/Users/...\testfile | ||
"\(tmpPath)/testfile", // C:/Users.../testfile | ||
"\(tmpPath)/testfile", // /Users/user/.../testfile | ||
"\(tmpPath.first!):testfile", // C:testfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, this fails when runner has no Administrator privileges. CI agents are usually elevated, but manual run as user would report failure.
A small test to ensure that Windows FSRs don't regress