From: Wootak Jung Date: Tue, 1 Sep 2020 03:42:24 +0000 (+0900) Subject: Fix the ASAN build error X-Git-Tag: accepted/tizen/6.0/unified/20201030.120308^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git;a=commitdiff_plain;h=422749383057ab13e010638f792db1a079bee778 Fix the ASAN build error Change-Id: I12ff05e325b5c98d82e653b00f45ff97b7b25be3 Signed-off-by: Wootak Jung --- diff --git a/packaging/bluetooth-agent.spec b/packaging/bluetooth-agent.spec index 9852a3e..82ab05e 100644 --- a/packaging/bluetooth-agent.spec +++ b/packaging/bluetooth-agent.spec @@ -158,18 +158,6 @@ find . -name '*.gcno' -exec cp '{}' gcov-obj ';' rm -rf %{buildroot} %make_install -%if 0%{?gcov:1} -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 - # This usage of profile macro does NOT conflict 4.0 configurability. #%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" # Original: wearable, ivi. Added: common, "undefined" @@ -186,6 +174,18 @@ install -D -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_unitdir}/ install -D -m 0644 packaging/bluetooth-hf-agent.service %{buildroot}%{_unitdir}/bluetooth-hf-agent.service install -D -m 0644 packaging/bluetooth-hid-agent.service %{buildroot}%{_unitdir}/bluetooth-hid-agent.service +%if 0%{?gcov:1} +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 + %files %manifest %{name}.manifest %license LICENSE