Skip to content

Commit 9599761

Browse files
Keep going even if a test file confuses geninfo
Keep going even if a test file confuses geninfo, and also silence the libstdc++ “unexecuted block” warnings.
1 parent 3adcc71 commit 9599761

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ jobs:
3232
- name: Generate coverage (LCOV)
3333
run: |
3434
lcov --capture \
35-
--directory obj \
36-
--directory bin \
35+
--directory obj --directory bin \
3736
--gcov-tool gcov-13 \
38-
--ignore-errors empty \
39-
--output-file coverage.info
40-
lcov --remove coverage.info '/usr/*' '*/googletest/*' \
37+
--rc geninfo_unexecuted_blocks=1 \
38+
--ignore-errors empty,mismatch \
39+
--output-file coverage.raw.info
40+
41+
# Then prune noise (tests and system headers)
42+
lcov --remove coverage.raw.info '/usr/*' '*/googletest/*' '*/tests/*' \
4143
--output-file coverage.info
4244
4345
- name: Upload to Codecov

0 commit comments

Comments
 (0)