From b251e9bc6ba87b66056d4bf2adc852038cb7e38e Mon Sep 17 00:00:00 2001 From: gichan2-jang Date: Tue, 19 Mar 2024 10:52:24 +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.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/nnstreamer.spec b/packaging/nnstreamer.spec index 63d785a..4e70186 100644 --- a/packaging/nnstreamer.spec +++ b/packaging/nnstreamer.spec @@ -1030,9 +1030,9 @@ find . -name "CMakeCCompilerId*.gcda" -delete find . -name "CMakeCXXCompilerId*.gcda" -delete #find . -path "/%{builddir}/*.j # Generate report -lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b %{builddir} --no-external +lcov -t 'NNStreamer Unit Test Coverage' -o unittest.info -c -d . -b %{builddir} --no-external --ignore-errors mismatch # Exclude generated files (e.g., Orc, Protobuf) and device-dependent filters. -lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/tools/*" "*/meson*/*" "*/*@sha/*" "*/*_openvino*" "*/*_edgetpu*" "*/*_movidius_ncsdk2*" "*/*.so.p/*" -o unittest-filtered.info +lcov -r unittest.info "*/*-orc.*" "*/tests/*" "*/tools/*" "*/meson*/*" "*/*@sha/*" "*/*_openvino*" "*/*_edgetpu*" "*/*_movidius_ncsdk2*" "*/*.so.p/*" -o unittest-filtered.info --ignore-errors graph,unused # Visualize the report genhtml -o result unittest-filtered.info -t "nnstreamer %{version}-%{release} ${VCS}" --ignore-errors source -p ${RPM_BUILD_DIR} -- 2.7.4