Skip to content

Commit 5a04fa6

Browse files
committed
[INFRA] Update coverage
1 parent 3c3b183 commit 5a04fa6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/ci_coverage.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ jobs:
7676
--filter ${GITHUB_WORKSPACE}/src \
7777
--exclude ${GITHUB_WORKSPACE}/include/hibf/contrib \
7878
--exclude ${GITHUB_WORKSPACE}/test/include/hibf/test/iterator_test_template.hpp \
79-
--exclude-lines-by-pattern '^\s*$' \
80-
--exclude-lines-by-pattern '^\s*};$' \
81-
--exclude-lines-by-pattern '^\s*HIBF_UNREACHABLE;' \
82-
--exclude-unreachable-branches \
83-
--exclude-throw-branches \
79+
--exclude-lines-by-pattern '^\s*}|^\s*};|^\s*HIBF_UNREACHABLE;' \
8480
--exclude-noncode-lines \
81+
--exclude-throw-branches \
82+
--exclude-unreachable-branches \
8583
--merge-mode-functions separate \
8684
-j \
8785
--cobertura \

test/coverage/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ project (hibf_test_coverage CXX)
88
# Add a custom build type: Coverage
99

1010
set (CMAKE_CXX_FLAGS_COVERAGE
11-
"${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage ${HIBF_FPROFILE_ABS_PATH}"
11+
"${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
1212
CACHE STRING "Flags used by the C++ compiler during coverage builds." FORCE)
1313
set (CMAKE_C_FLAGS_COVERAGE
14-
"${CMAKE_C_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage ${HIBF_FPROFILE_ABS_PATH}"
14+
"${CMAKE_C_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
1515
CACHE STRING "Flags used by the C compiler during coverage builds." FORCE)
1616
set (CMAKE_EXE_LINKER_FLAGS_COVERAGE
1717
"${CMAKE_EXE_LINKER_FLAGS_DEBUG} -Wl,-lgcov"

0 commit comments

Comments
 (0)