-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch SIGINT and SIGTERM and kill running tests
Tests are forked and placed into their own process group. If the test runner process receives a terminal signal it exits but the test continue running. This could result in test processes running indefinitely if they do not exit themselves. This changes catches SIGINT and SIGTERM signals and kills the test processes. Note that other signals, such as SIGSEGV and SIGFPE will still result in test processes being leaked. This code is based on that in patch #52. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1203 64e312b2-a51f-0410-8e61-82d0ca0eb02a
- Loading branch information
brarcher
committed
May 7, 2015
1 parent
3ec30d2
commit d6c7064
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters