Skip to content

Commit ebb2345

Browse files
authored
[CI] Suppress code coverage errors due to mistaken negative hits (#176)
Fix for the following error: ``` gcovr.formats.gcov.parser.NegativeHits: Got negative hit value in gcov line 'branch 2 taken -3' caused by a bug in gcov tool, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080. Use option --gcov-ignore-parse-errors with a value of negative_hits.warn, or negative_hits.warn_once_per_file. Got negative hit value in gcov line 'branch 2 taken -3' caused by a bug in gcov tool, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080. Use option --gcov-ignore-parse-errors with a value of negative_hits.warn, or negative_hits.warn_once_per_file. ```
1 parent 0b464d8 commit ebb2345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
env:
211211
CTEST_OUTPUT_ON_FAILURE: 1
212212
- name: Generate Coverage Data
213-
run: gcovr -r . --xml -o coverage.xml
213+
run: gcovr -r . --xml -o coverage.xml --gcov-ignore-parse-errors
214214
- name: Upload coverage reports to Codecov
215215
uses: codecov/[email protected]
216216
with:

0 commit comments

Comments
 (0)