Skip to content

Commit 92ab41f

Browse files
author
czjaso
committed
Fix coverage.
1 parent 684af6d commit 92ab41f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/unity/coverage.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ execute_process( COMMAND lcov --directory ${CMAKE_BINARY_DIR}
1414
--base-directory ${CMAKE_BINARY_DIR}
1515
--initial
1616
--capture
17-
--rc lcov_branch_coverage=1
17+
--ignore-errors source
18+
--rc branch_coverage=1
1819
--rc genhtml_branch_coverage=1
1920
--output-file=${CMAKE_BINARY_DIR}/base_coverage.info
2021
)
@@ -45,7 +46,8 @@ execute_process(COMMAND ruby
4546
# capture data after running the tests
4647
execute_process(
4748
COMMAND lcov --capture
48-
--rc lcov_branch_coverage=1
49+
--ignore-errors source
50+
--rc branch_coverage=1
4951
--rc genhtml_branch_coverage=1
5052
--base-directory ${CMAKE_BINARY_DIR}
5153
--directory ${CMAKE_BINARY_DIR}
@@ -60,10 +62,10 @@ execute_process(
6062
--add-tracefile ${CMAKE_BINARY_DIR}/second_coverage.info
6163
--output-file ${CMAKE_BINARY_DIR}/coverage.info
6264
--no-external
63-
--rc lcov_branch_coverage=1
65+
--rc branch_coverage=1
6466
)
6567
execute_process(
66-
COMMAND genhtml --rc lcov_branch_coverage=1
68+
COMMAND genhtml --rc branch_coverage=1
6769
--branch-coverage
6870
--output-directory ${CMAKE_BINARY_DIR}/coverage
6971
${CMAKE_BINARY_DIR}/coverage.info

0 commit comments

Comments
 (0)