Skip to content
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

[ProcessTests] Use ps -p to check if subprocess is running #891

Merged
merged 1 commit into from Jan 5, 2017

Conversation

ankitspd
Copy link
Member

@ankitspd ankitspd commented Jan 4, 2017

This is more deterministic than using getpgid() for linux.

XCTAssertFalse(running(ProcessID(child)))
#endif
XCTAssertFalse(try running(ProcessID(parent)))
// The child process becomes defunct when executing the tests using docker directly without entering bash.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might make sense to mark this as a FIXME to eventually investigate why that might be the case and/or if it is something we should maybe handle/workaround in Process.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good idea

@ankitspd
Copy link
Member Author

ankitspd commented Jan 5, 2017

@swift-ci please test

@ankitspd ankitspd merged commit 7b93151 into apple:master Jan 5, 2017
@ankitspd ankitspd deleted the determ-sigkill-test branch January 5, 2017 12:38
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.

None yet

2 participants