From bb509f612733a3f3e14c3ef7958594940c8c3869 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 15 Mar 2024 20:22:17 +0900 Subject: [PATCH] packaging: Fix gcov build error by adding the ignore error cases By upgrading lcov package version, there are new build error before build warning. Fix gcov build error by adding the ignore error cases of 'mismatch' and 'unused' options. Change-Id: Ibc2d20eb0e9ca28c79cd9125b2e0b0aaf08a9d13 Signed-off-by: Chanwoo Choi --- src/test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 85f216c..d8c096b 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -74,10 +74,10 @@ function(setup_coverage_target) # Setup target add_custom_target(${COV_NAME} - COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --gcov-tool ${GCOV_PATH} -directory . -b ${BASEDIR} --zerocounters + COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --ignore-errors mismatch,graph,unused --gcov-tool ${GCOV_PATH} -directory . -b ${BASEDIR} --zerocounters COMMAND ${COV_EXECUTABLE} ${COV_EXECUTABLE_ARGS} - COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --gcov-tool ${GCOV_PATH} --directory . -b ${BASEDIR} --capture --output-file ${COV_NAME}.total - COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --gcov-tool ${GCOV_PATH} --remove ${COV_NAME}.total ${LCOV_EXCLUDES} --output-file ${COV_NAME}.info + COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --ignore-errors mismatch,graph,unused --gcov-tool ${GCOV_PATH} --directory . -b ${BASEDIR} --capture --output-file ${COV_NAME}.total + COMMAND ${LCOV_PATH} ${COV_LCOV_ARGS} --ignore-errors mismatch,graph,unused --gcov-tool ${GCOV_PATH} --remove ${COV_NAME}.total ${LCOV_EXCLUDES} --output-file ${COV_NAME}.info COMMAND ${GENHTML_PATH} ${GENHTML_EXTRA_ARGS} ${COV_GENHTML_ARGS} -o ${COV_NAME} ${COV_NAME}.info COMMAND ${ZIP_PATH} -r ${target}.zip ${COV_NAME} -- 2.34.1