Skip to content

TestFoundation: make TestPipe pass on Windows #2237

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
May 9, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 9, 2019

Windows does not provide fileDescriptor for file handles as it uses
HANDLEs underneath and it is not possible to provide a non-owning file
descriptor value. Make this contingent on testable imports and use the
internal _isPlatformHandleValid method to check instead.

Windows does not provide `fileDescriptor` for file handles as it uses
HANDLEs underneath and it is not possible to provide a non-owning file
descriptor value.  Make this contingent on testable imports and use the
internal `_isPlatformHandleValid` method to check instead.
@compnerd
Copy link
Member Author

compnerd commented May 9, 2019

CC: @millenomi @spevans

@compnerd
Copy link
Member Author

compnerd commented May 9, 2019

@swift-ci please test

@compnerd compnerd merged commit a6bfbe0 into swiftlang:master May 9, 2019
@compnerd compnerd deleted the handle-pipes-with-care branch May 9, 2019 14:49
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.

2 participants