Increase line coverage using LCOV_EXCL
[platform/core/system/libstorage.git] / src / statvfs.c
index 6e9f841..7e7ef02 100644 (file)
@@ -157,7 +157,7 @@ API int storage_get_internal_memory_size64(struct statvfs *buf)
        int ret_val;
 
        if (!buf) {
-               _E("input param error"); //LCOV_EXCL_LINE
+               _E("input param error");
                return STORAGE_ERROR_INVALID_PARAMETER;
        }
 
@@ -224,8 +224,8 @@ int storage_get_external_memory_size_with_path(char *path, struct statvfs *buf)
                snprintf(ext_path, sizeof(ext_path), "%s", path);
        else {
                if (!storage_ext_is_supported()) {
-                       _D("Block module is not enabled");
-                       return STORAGE_ERROR_NOT_SUPPORTED;
+                       _D("Block module is not enabled"); //LCOV_EXCL_LINE
+                       return STORAGE_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
                }
                ret_val = get_external_path(ext_path, sizeof(ext_path));
                if (ret_val == -ENODEV)
@@ -269,14 +269,14 @@ int storage_get_external_memory_size64_with_path(char *path, struct statvfs *buf
                snprintf(ext_path, sizeof(ext_path), "%s", path);
        else {
                if (!storage_ext_is_supported()) {
-                       _D("Block module is not enabled");
-                       return STORAGE_ERROR_NOT_SUPPORTED;
+                       _D("Block module is not enabled"); //LCOV_EXCL_LINE
+                       return STORAGE_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
                }
                ret_val = get_external_path(ext_path, sizeof(ext_path));
                if (ret_val == -ENODEV)
                        goto out_nodev;
                if (ret_val < 0) {
-                       _E("Failed to get external path(%d)", ret_val);
+                       _E("Failed to get external path(%d)", ret_val); //LCOV_EXCL_LINE
                        return STORAGE_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
                }
        }