Skip to content

TestFoundation: use .standardizingPath for normalization #2010

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 1 commit into from
Mar 15, 2019

Conversation

compnerd
Copy link
Member

Rather than use realpath which is not universally available, use
.standardizingPath which should normalize the path as realpath on
all the targets since we are testing Process rather than
FileManager.

Rather than use `realpath` which is not universally available, use
`.standardizingPath` which should normalize the path as `realpath` on
all the targets since we are testing `Process` rather than
`FileManager`.
@compnerd
Copy link
Member Author

CC: @millenomi @spevans

@compnerd
Copy link
Member Author

@swift-ci please test

@spevans
Copy link
Contributor

spevans commented Mar 15, 2019

Agreed, we shouldn't use any per-platform system calls in the tests, better to use something provided by Foundation itself to ensure it gets extra testing.

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@compnerd compnerd merged commit 74b714a into swiftlang:master Mar 15, 2019
@compnerd compnerd deleted the keeping-it-real branch March 15, 2019 17:29
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.

3 participants