Skip to content

Commit 0bce96f

Browse files
committed
Try excluding typeRegistry.h from coverage
Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
1 parent 0d0d540 commit 0bce96f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
if: matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT
6666
run: |
6767
cd ${{ env.OTIO_BUILD_DIR }}
68-
lcov --capture -b . --directory . --output-file=coverage.info -q --ignore-errors gcov
68+
lcov --capture -b . --directory . --output-file=coverage.info -q
6969
cat coverage.info | sed "s/SF:.*src/SF:src/g" > coverage.filtered.info
7070
lcov --remove coverage.filtered.info '*/usr/*' --output-file=coverage.filtered.info -q
7171
lcov --remove coverage.filtered.info '*/deps/*' --output-file=coverage.filtered.info -q

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
150150
set(CMAKE_CXX_EXTENSIONS OFF)
151151

152152
if(OTIO_CXX_COVERAGE AND NOT MSVC)
153-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-exclude-files='rapidjson/*'")
153+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-exclude-files='rapidjson/*' -fprofile-exclude-files=src/opentimelineio/typeRegistry.h")
154154
# this causes cmake to produce file.gcno instead of file.cpp.gcno
155155
set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
156156
message(STATUS "Building C++ with Coverage: ON")

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ ifndef OTIO_CXX_BUILD_TMP_DIR
9393
not be found.)
9494
endif
9595
lcov --rc lcov_branch_coverage=1 --capture -b . --directory ${OTIO_CXX_BUILD_TMP_DIR} \
96-
--output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q \
97-
--ignore-errors gcov
96+
--output-file=${OTIO_CXX_BUILD_TMP_DIR}/coverage.info -q
9897
cat ${OTIO_CXX_BUILD_TMP_DIR}/coverage.info | sed "s/SF:.*src/SF:src/g"\
9998
> ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info
10099
lcov --rc lcov_branch_coverage=1 --remove ${OTIO_CXX_BUILD_TMP_DIR}/coverage.filtered.info '/usr/*' \

0 commit comments

Comments
 (0)