-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When testing that a closure calls `abort`, exit normally in the child process if the test closure returns successfully. Previously, the child process would call `_Exit` in order to terminate without flushing to stdout. However, this also prevents gcov from writing coverage metrics of the child process as this routine is registered with `atexit`. This commit updates the abort predicate to send a flush command to the printer before calling fork. The child process silences the printer before invoking the test closure and exits normally if needed. Change-Id: I0164e5752b4967ecad87c7fb7eee6622b847ab4b
- Loading branch information
Showing
3 changed files
with
54 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
# basic | ||
target: auto | ||
threshold: 0% | ||
base: auto | ||
flags: | ||
- unit | ||
paths: | ||
- "src" | ||
# advanced settings | ||
branches: | ||
- master | ||
if_ci_failed: error #success, failure, error, ignore | ||
informational: false | ||
only_pulls: false |
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