Skip to content

Fix Process tests that fails when stdin is empty #2765

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

Conversation

Frizlab
Copy link
Contributor

@Frizlab Frizlab commented Apr 12, 2020

When building Swift in a docker via docker build, stdin returns EOF at each read and there is nothing we can do about it.
Because of this, the tests test_terminate and test_preStartEndState fail because the helper exits w/ code 0 before the swift Process can terminate it.

This PR fixes this problem by setting a Pipe stdin to the Processes.

…ilding Swift in a Docker

In a Docker build context, there is no stdin, so cat exits w/ code 0 before being able to be terminated by the test program.
@millenomi
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit 420413f into swiftlang:swift-5.2-branch Apr 13, 2020
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