From 11a291e472cdbe5b0498209c610a45a4f2a43043 Mon Sep 17 00:00:00 2001 From: gichan2-jang Date: Tue, 19 Mar 2024 10:33:01 +0900 Subject: [PATCH] [Tizen] Fix gcov build error Due to the lcov 2.0 upgrade, the warning is changed to error so the gcov build fails. Ignore this case. (Tizen PM guide) Signed-off-by: gichan2-jang --- packaging/nnstreamer-edge.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/nnstreamer-edge.spec b/packaging/nnstreamer-edge.spec index 7d73be9..641eb8e 100644 --- a/packaging/nnstreamer-edge.spec +++ b/packaging/nnstreamer-edge.spec @@ -146,9 +146,9 @@ find . -name "*.gcno" -exec sh -c 'touch -a "${1%.gcno}.gcda"' _ {} \; find . -name "CMakeCCompilerId*.gcda" -delete find . -name "CMakeCXXCompilerId*.gcda" -delete # Generate report -lcov -t 'NNStreamer-edge unittest coverage' -o unittest.info -c -d . -b $(pwd) --no-external +lcov -t 'NNStreamer-edge unittest coverage' -o unittest.info -c -d . -b $(pwd) --no-external --ignore-errors mismatch # Exclude test files. -lcov -r unittest.info "*/tests/*" -o unittest-filtered.info +lcov -r unittest.info "*/tests/*" -o unittest-filtered.info --ignore-errors graph,unused # Visualize the report genhtml -o result unittest-filtered.info -t "NNStreamer-edge %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR} -- 2.34.1