From: DoHyun Pyun Date: Mon, 13 Jul 2020 05:17:33 +0000 (+0900) Subject: Fix the ASAN build error X-Git-Tag: accepted/tizen/unified/20200721.142236^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=190c0d19181115d8e8978f2f51cb32ea0721ddca;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-share.git Fix the ASAN build error Change-Id: I289fee61a4c01df4137636b6eaee4cb996caf65d Signed-off-by: DoHyun Pyun --- diff --git a/packaging/bluetooth-share.spec b/packaging/bluetooth-share.spec index 81c5860..4b54535 100644 --- a/packaging/bluetooth-share.spec +++ b/packaging/bluetooth-share.spec @@ -113,12 +113,8 @@ mkdir -p %{buildroot}%{_datadir}/gcov/obj install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj %endif -%check -%if 0%{?gcov:1} -pushd unittest -./run_coverage.sh -popd -%endif +mkdir -p %{buildroot}%{TZ_COMM_DATA}/%{name} +mkdir -p %{buildroot}%{_unitdir} install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_COMM_DATA}/%{name}/init_db.sh install -D -m 0644 packaging/bluetooth-share.service %{buildroot}%{_unitdir}/bluetooth-share.service @@ -129,6 +125,13 @@ mkdir -p %{buildroot}%{upgrade_data_path} cp -f packaging/500.bluetooth-share_upgrade.sh %{buildroot}%{upgrade_script_path} cp -f packaging/init_db.sh %{buildroot}%{upgrade_data_path} +%check +%if 0%{?gcov:1} +pushd unittest +./run_coverage.sh +popd +%endif + %post /sbin/ldconfig %{TZ_COMM_DATA}/%{name}/init_db.sh