From f76cd2cb39ea0c8033d06b519669b83a97889760 Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Thu, 22 Jan 2026 14:21:18 +0900 Subject: [PATCH] [Build] coverage error Fix line coverage error after upgrading lcov. Signed-off-by: Jaeyun Jung --- packaging/machine-learning-api.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/machine-learning-api.spec b/packaging/machine-learning-api.spec index c1e6163a..81974c35 100644 --- a/packaging/machine-learning-api.spec +++ b/packaging/machine-learning-api.spec @@ -418,7 +418,7 @@ export MLAPI_BUILD_ROOT_PATH=$(pwd)/build # Capture initial zero coverage data. This will be merged with actual coverage data later. # This is to prevent null gcda file error if the test is not performed (in case of gcov package generation mode). pushd build -lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch +lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch --exclude "unittest*" popd %endif # testcoverage @@ -465,7 +465,7 @@ VCS=`cat ${RPM_SOURCE_DIR}/machine-learning-api.spec | grep "^VCS:" | sed "s|VCS pushd build # Set different lcov options for Tizen/lcov versions. %if 0%{tizen_version_major} >= 9 -lcov -t 'ML API unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty +lcov -t 'ML API unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty --exclude "unittest*" lcov -a unittest_base.info -a unittest_test.info -o unittest_total.info --ignore-errors empty lcov -r unittest_total.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info --ignore-errors graph,unused %else