packaging: Fix gcov build error by adding the ignore error cases 54/308054/1 accepted/tizen_unified_dev accepted/tizen/unified/20240318.071433 accepted/tizen/unified/dev/20240620.003755 accepted/tizen/unified/x/20240319.055459
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 15 Mar 2024 11:22:17 +0000 (20:22 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 15 Mar 2024 11:23:02 +0000 (20:23 +0900)
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 <cw00.choi@samsung.com>
src/test/CMakeLists.txt

index 85f216ce5f5a46e082eb6dc5668ca8aea911225b..d8c096b90e367a00d9f26e9320a83e3b429899b3 100644 (file)
@@ -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}