vconf-compat : add lcov exclude comment for not supported api in tc 78/75678/1 accepted/tizen/common/20160627.191114 accepted/tizen/common/20160629.222152 accepted/tizen/ivi/20160624.064116 accepted/tizen/mobile/20160624.063716 accepted/tizen/tv/20160624.063735 accepted/tizen/wearable/20160624.064001 submit/tizen/20160621.225650 submit/tizen/20160623.110452
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 21 Jun 2016 03:53:07 +0000 (12:53 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Tue, 21 Jun 2016 03:56:21 +0000 (12:56 +0900)
Change-Id: Ic840702d21303b072e011e3bfc96bafdf7b4249d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
vconf-compat/vconf.c

index 9ad157f..d7c0f2f 100644 (file)
@@ -1327,6 +1327,7 @@ EXPORT int vconf_unset(const char *in_key)
        if (getuid() != 0)
                return VCONF_ERROR_NOT_SUPPORTED;
 
+       /* LCOV_EXCL_START */
        if (!in_key) {
                errno = EINVAL;
                return -1;
@@ -1341,6 +1342,7 @@ EXPORT int vconf_unset(const char *in_key)
                LOGE("unset value: key '%s' errno %d", in_key, errno);
 
        _close(client, layer);
+       /* LCOV_EXCL_STOP */
 
        return r;
 }
@@ -1358,6 +1360,7 @@ EXPORT int vconf_unset_recursive(const char *in_dir)
        if (getuid() != 0)
                return VCONF_ERROR_NOT_SUPPORTED;
 
+       /* LCOV_EXCL_START */
        if (!in_dir) {
                errno = EINVAL;
                return -1;
@@ -1394,6 +1397,7 @@ EXPORT int vconf_unset_recursive(const char *in_dir)
 
        buxton_free_keys(names);
        _close(client, layer);
+       /* LCOV_EXCL_STOP */
 
        return 0;
 }