Remove gcov rpm 71/279571/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063110 accepted/tizen/7.0/unified/hotfix/20221116.105143 accepted/tizen/unified/20220823.131830 submit/tizen/20220816.005042 submit/tizen/20220822.114248 tizen_7.0_m2_release
authorWootak Jung <wootak.jung@samsung.com>
Thu, 11 Aug 2022 23:27:07 +0000 (08:27 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 11 Aug 2022 23:27:35 +0000 (08:27 +0900)
Change-Id: I584194cda5742b54ae1a214b2739050e518df84c

packaging/bluetooth-share.spec
tests/mock/bt-share-mock.c

index 6a0a445..a415f45 100644 (file)
@@ -60,16 +60,6 @@ Requires:   %{name} = %{version}-%{release}
 %description -n libbluetooth-share-devel
 Development package for libbluetooth-share
 
-%if 0%{?gcov:1}
-%package gcov
-Summary: Test package for bluetooth-share
-Group:   Network & Connectivity/Testing
-Requires: %{name} = %{version}-%{release}
-
-%description gcov
-This package is C-API test application.
-%endif
-
 %global upgrade_data_path /usr/share/upgrade/data
 
 %prep
@@ -133,6 +123,8 @@ genhtml %{name}.info -o out --legend --show-details
 %{upgrade_data_path}/init_db.sh
 #%{_datadir}/dbus-1/system-services/org.bluetooth.share.service
 %license LICENSE.APLv2
+%exclude %{_bindir}/bt-share-gtest
+%exclude %{_datadir}/gcov/*
 
 %files -n libbluetooth-share
 %manifest %{name}.manifest
@@ -143,9 +135,3 @@ genhtml %{name}.info -o out --legend --show-details
 %{_includedir}/%{name}-api/%{name}-api.h
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/%{name}-api.pc
-
-%if 0%{?gcov:1}
-%files gcov
-%{_bindir}/bt-share-gtest
-%{_datadir}/gcov/*
-%endif
index a4dc242..cd15240 100644 (file)
@@ -115,6 +115,8 @@ API int open(const char *__path, int __oflag, ...)
 {
        if (strcmp(__path, "/opt/usr/home/owner/media/Downloads/bluetooth_content_share.html") == 0) {
                return 0;
+       } else if (strcmp(__path, "/opt/usr/home/owner/media/Downloads/bluetooth_content_share_0.html") == 0) {
+               return 0;
        } else if (strcmp(__path, "/opt/usr/home/owner/media/Downloads/bluetooth_content_share_0.txt") == 0) {
                return 0;
        } else if (strcmp(__path, "/opt/system/model-config/system_info_db") == 0) {