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

Add a signal handler to forward SIGINT to 'go test' #147

Merged
merged 2 commits into from
Sep 13, 2020

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented Sep 7, 2020

Some test binaries may want to handle SIGINT to perform cleanup of
external resources. This signal handler will forward the interrupt
signal to the 'go test' process to give it a chance to cleanup before
shutting down.

@dnephin dnephin added the enhancement New feature or request label Sep 7, 2020
Occasionally on CI these tests will take longer than 100ms which will cause the test to fail
beause the output is different from expected
@dnephin dnephin force-pushed the signal-handler branch 2 times, most recently from b147b3f to 5a32602 Compare September 7, 2020 19:07
Some test binaries may want to handle SIGINT to perform cleanup of
external resources. This signal handler will forward the interrupt
signal to the 'go test' process to give it a chance to cleanup before
shutting down.
@dnephin dnephin merged commit b3209ee into gotestyourself:master Sep 13, 2020
@dnephin dnephin deleted the signal-handler branch September 13, 2020 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant