common: add excluding coverage comments 53/175053/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 6 Apr 2018 07:40:25 +0000 (16:40 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 6 Apr 2018 07:40:25 +0000 (16:40 +0900)
Change-Id: I3608620a3fd494a1416dfb53df057241e074f114

src/tdm_backend.c
src/tdm_display.c
src/tdm_hwc_window.c
src/tdm_macro.h
src/tdm_output.c

index 238d085..8be51f0 100644 (file)
@@ -131,6 +131,7 @@ tdm_backend_register_func_layer(tdm_display *dpy, tdm_func_layer *func_layer)
        return TDM_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 EXTERN tdm_error
 tdm_backend_register_func_hwc_window(tdm_display *dpy, tdm_func_hwc_window *func_hwc_window)
 {
@@ -155,6 +156,7 @@ tdm_backend_register_func_hwc_window(tdm_display *dpy, tdm_func_hwc_window *func
 
        return TDM_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN tdm_error
 tdm_backend_register_func_pp(tdm_display *dpy, tdm_func_pp *func_pp)
@@ -204,6 +206,7 @@ tdm_backend_register_func_capture(tdm_display *dpy,
        return TDM_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 /* backend operates itself types */
 static tdm_private_output*
 _look_for_frontend_hwc_output(tdm_output *backend_output)
@@ -247,3 +250,4 @@ tdm_backend_trigger_need_validate_event(tdm_output *output)
 
        return TDM_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
index d2fcde4..9f66167 100644 (file)
@@ -61,6 +61,7 @@
        private_module = (tdm_private_module*)module; \
        private_display = private_module->private_display;
 
+/* LCOV_EXCL_START */
 INTERN tdm_error
 tdm_display_enable_debug_module(const char*modules)
 {
@@ -346,6 +347,7 @@ tdm_display_enable_fps(tdm_private_display *private_display, int enable)
 
        return TDM_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN tdm_error
 tdm_display_get_capabilities(tdm_display *dpy,
index c3619ed..8ef8042 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "tdm_private.h"
 
+/* LCOV_EXCL_START */
+
 #define COUNT_MAX   10
 
 #define HWC_WINDOW_FUNC_ENTRY() \
@@ -86,13 +88,11 @@ tdm_hwc_window_get_tbm_buffer_queue(tdm_hwc_window *hwc_window, tdm_error *error
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_get_tbm_buffer_queue) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                if (error)
                        *error = TDM_ERROR_NOT_IMPLEMENTED;
                return NULL;
-               /* LCOV_EXCL_STOP */
        }
 
        queue = func_hwc_window->hwc_window_get_tbm_buffer_queue(private_hwc_window->hwc_window_backend, error);
@@ -119,11 +119,9 @@ tdm_hwc_window_set_composition_type(tdm_hwc_window *hwc_window,
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_set_composition_type) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_set_composition_type(private_hwc_window->hwc_window_backend, composition_type);
@@ -149,11 +147,9 @@ tdm_hwc_window_set_buffer_damage(tdm_hwc_window *hwc_window, tdm_hwc_region dama
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_set_buffer_damage) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_set_buffer_damage(private_hwc_window->hwc_window_backend, damage);
@@ -181,11 +177,9 @@ tdm_hwc_window_set_info(tdm_hwc_window *hwc_window, tdm_hwc_window_info *info)
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_set_info) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        if (info->src_config.format)
@@ -220,23 +214,19 @@ tdm_hwc_window_set_buffer(tdm_hwc_window *hwc_window, tbm_surface_h buffer)
        _pthread_mutex_lock(&private_display->lock);
 
        if ((tdm_debug_dump & TDM_DUMP_FLAG_WINDOW) && buffer) {
-               /* LCOV_EXCL_START */
                char str[TDM_PATH_LEN];
                static int i;
                snprintf(str, TDM_PATH_LEN, "window_%d_%03d", private_output->index, i++);
                tdm_helper_dump_buffer_str(buffer, tdm_debug_dump_dir, str);
-               /* LCOV_EXCL_STOP */
        }
 
        private_module = private_output->private_module;
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_set_buffer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_set_buffer(private_hwc_window->hwc_window_backend, buffer);
@@ -260,11 +250,9 @@ tdm_hwc_window_unset_buffer(tdm_hwc_window *hwc_window)
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_unset_buffer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_unset_buffer(private_hwc_window->hwc_window_backend);
@@ -289,11 +277,9 @@ tdm_hwc_window_create_internal(tdm_private_output *private_output, int is_video,
 
        if (!is_video) {
                if (!func_output->output_hwc_create_window) {
-                       /* LCOV_EXCL_START */
                        if (error)
                                *error = TDM_ERROR_BAD_MODULE;
                        return NULL;
-                       /* LCOV_EXCL_STOP */
                }
 
                hwc_window_backend = func_output->output_hwc_create_window(
@@ -305,11 +291,9 @@ tdm_hwc_window_create_internal(tdm_private_output *private_output, int is_video,
                }
        } else {
                if (!func_output->output_hwc_create_video_window) {
-                       /* LCOV_EXCL_START */
                        if (error)
                                *error = TDM_ERROR_NOT_IMPLEMENTED;
                        return NULL;
-                       /* LCOV_EXCL_STOP */
                }
 
                hwc_window_backend = func_output->output_hwc_create_video_window(
@@ -323,13 +307,11 @@ tdm_hwc_window_create_internal(tdm_private_output *private_output, int is_video,
 
        private_hwc_window = calloc(1, sizeof(tdm_private_hwc_window));
        if (!private_hwc_window) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: alloc memory");
                func_output->output_hwc_destroy_window(private_output->output_backend, hwc_window_backend);
                if (error)
                        *error = TDM_ERROR_OUT_OF_MEMORY;
                return NULL;
-               /* LCOV_EXCL_STOP */
        }
 
        LIST_ADD(&private_hwc_window->link, &private_output->hwc_window_list);
@@ -384,11 +366,9 @@ tdm_hwc_window_set_flags(tdm_hwc_window *hwc_window, tdm_hwc_window_flag flags)
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_set_flags) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_set_flags(private_hwc_window->hwc_window_backend, flags);
@@ -412,11 +392,9 @@ tdm_hwc_window_unset_flags(tdm_hwc_window *hwc_window, tdm_hwc_window_flag flags
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_unset_flags) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_unset_flags(private_hwc_window->hwc_window_backend, flags);
@@ -461,21 +439,17 @@ tdm_hwc_window_commit(tdm_hwc_window *hwc_window, tdm_hwc_window_commit_handler
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_get_layer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        layer = func_hwc_window->hwc_window_get_layer(private_hwc_window->hwc_window_backend,
                                                                                                                   &ret);
        if (!layer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("no assigned layer!!");
                return TDM_ERROR_INVALID_PARAMETER;
-               /* LCOV_EXCL_STOP */
        }
 
        private_layer = (tdm_private_layer*)layer;
@@ -487,36 +461,28 @@ tdm_hwc_window_commit(tdm_hwc_window *hwc_window, tdm_hwc_window_commit_handler
        else
                ret = tdm_layer_unset_buffer_internal(private_layer);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: layer set buffer(window)");
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
        ret = func_hwc_window->hwc_window_get_info(private_hwc_window->hwc_window_backend,
                                                                                                                   &window_info);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: commit layer(window)");
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
        info_layer = (tdm_info_layer *)&window_info;
        ret = tdm_layer_set_info_internal(private_layer, info_layer);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: layer set info(window)");
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
        hwc_window_commit_handler = calloc(1, sizeof(tdm_private_hwc_window_commit_handler));
        if (!hwc_window_commit_handler) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: alloc memory");
                return TDM_ERROR_OUT_OF_MEMORY;
-               /* LCOV_EXCL_STOP */
        }
 
        hwc_window_commit_handler->private_hwc_window = private_hwc_window;
@@ -525,10 +491,8 @@ tdm_hwc_window_commit(tdm_hwc_window *hwc_window, tdm_hwc_window_commit_handler
 
        ret = tdm_layer_commit_internal(private_layer, _tdm_hwc_window_layer_commit_handler, hwc_window_commit_handler);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: commit layer(window)");
                free(hwc_window_commit_handler);
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
@@ -554,11 +518,9 @@ tdm_hwc_window_video_get_capability(tdm_hwc_window *hwc_window,
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_video_get_capability) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_video_get_capability(private_hwc_window->hwc_window_backend,
@@ -587,11 +549,9 @@ tdm_hwc_window_video_get_available_properties(tdm_hwc_window *hwc_window,
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_video_get_available_properties) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_video_get_available_properties(private_hwc_window->hwc_window_backend,
@@ -619,11 +579,9 @@ tdm_hwc_window_video_get_property(tdm_hwc_window *hwc_window,
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_video_get_property) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_video_get_property(private_hwc_window->hwc_window_backend,
@@ -649,11 +607,9 @@ tdm_hwc_window_video_set_property(tdm_hwc_window *hwc_window,
        func_hwc_window = &private_module->func_hwc_window;
 
        if (!func_hwc_window->hwc_window_video_set_property) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_hwc_window->hwc_window_video_set_property(private_hwc_window->hwc_window_backend,
@@ -663,3 +619,4 @@ tdm_hwc_window_video_set_property(tdm_hwc_window *hwc_window,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
\ No newline at end of file
index 00af3ef..a84b82a 100644 (file)
@@ -103,6 +103,7 @@ extern "C" {
 #define TDM_OUTPUT_DPMS_VSYNC_IS_OFF(dpms)   ((dpms) & TDM_OUTPUT_DPMS_VSYNC_OFF_MASK)
 
 /* strtostr *****************************************************************/
+/* LCOV_EXCL_START */
 static inline char*
 strtostr(char *buf, int len, char *str, char *delim)
 {
@@ -117,6 +118,7 @@ strtostr(char *buf, int len, char *str, char *delim)
        snprintf(buf, len, "%s", str);
        return str + len - 1;
 }
+/* LCOV_EXCL_STOP */
 
 /* EXTERN, INTERN, DEPRECATED ***********************************************/
 #undef EXTERN
index 6543b7d..9b9d200 100644 (file)
@@ -1563,6 +1563,7 @@ tdm_output_create_capture(tdm_output *output, tdm_error *error)
        return capture;
 }
 
+/* LCOV_EXCL_START */
 EXTERN tdm_hwc_window *
 tdm_output_hwc_create_window(tdm_output *output, tdm_error *error)
 {
@@ -1575,11 +1576,9 @@ tdm_output_hwc_create_window(tdm_output *output, tdm_error *error)
        if (private_output->caps.capabilities & TDM_OUTPUT_CAPABILITY_HWC)
                hwc_window = (tdm_hwc_window *)tdm_hwc_window_create_internal(private_output, 0, error);
        else {
-               /* LCOV_EXCL_START */
                TDM_ERR("output(%p) not support HWC", private_output);
                if (error)
                        *error = TDM_ERROR_BAD_REQUEST;
-               /* LCOV_EXCL_STOP */
        }
 
        _pthread_mutex_unlock(&private_display->lock);
@@ -1599,11 +1598,9 @@ tdm_output_hwc_create_video_window(tdm_output *output, tdm_error *error)
        if (private_output->caps.capabilities & TDM_OUTPUT_CAPABILITY_HWC)
                hwc_window = (tdm_hwc_window *)tdm_hwc_window_create_internal(private_output, 1, error);
        else {
-               /* LCOV_EXCL_START */
                TDM_ERR("output(%p) not support HWC", private_output);
                if (error)
                        *error = TDM_ERROR_BAD_REQUEST;
-               /* LCOV_EXCL_STOP */
        }
 
        _pthread_mutex_unlock(&private_display->lock);
@@ -1653,11 +1650,9 @@ tdm_output_hwc_validate(tdm_output *output, tdm_hwc_window **composited_wnds,
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_validate) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        if (num_wnds == 0) {
@@ -1670,10 +1665,8 @@ tdm_output_hwc_validate(tdm_output *output, tdm_hwc_window **composited_wnds,
 
        composited_wnds_backend = calloc(num_wnds, sizeof(tdm_hwc_window *));
        if (!composited_wnds_backend) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                return TDM_ERROR_OUT_OF_MEMORY;
-               /* LCOV_EXCL_STOP */
        }
 
        composited_wnds_frontend = (tdm_private_hwc_window **)composited_wnds;
@@ -1747,20 +1740,16 @@ tdm_output_hwc_get_changed_composition_types(tdm_output *output,
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_get_changed_composition_types) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_output->output_hwc_get_changed_composition_types(private_output->output_backend,
                                                        num_elements, hwc_window, composition_types);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                return ret;
-               /* LCOV_EXCL_STOP */
        }
 
        if (hwc_window == NULL || composition_types == NULL) {
@@ -1773,13 +1762,11 @@ tdm_output_hwc_get_changed_composition_types(tdm_output *output,
                private_hwc_window = _tdm_output_find_private_hwc_window(private_output, hwc_window[i]);
 
                if (private_hwc_window == NULL) {
-                       /* LCOV_EXCL_START */
                        TDM_ERR("failed! This should never happen!");
                        func_output->output_hwc_destroy_window(private_output->output_backend, hwc_window[i]);
                        *num_elements = 0;
                        _pthread_mutex_unlock(&private_display->lock);
                        return TDM_ERROR_OPERATION_FAILED;
-                       /* LCOV_EXCL_STOP */
                }
 
                hwc_window[i] = (tdm_hwc_window*)private_hwc_window;
@@ -1810,11 +1797,9 @@ tdm_output_hwc_accept_changes(tdm_output *output)
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_validate) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_output->output_hwc_accept_changes(private_output->output_backend);
@@ -1847,11 +1832,9 @@ tdm_output_hwc_get_target_buffer_queue(tdm_output *output, tdm_error *error)
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_get_target_buffer_queue) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return NULL;
-               /* LCOV_EXCL_STOP */
        }
 
        queue = func_output->output_hwc_get_target_buffer_queue(private_output->output_backend, error);
@@ -1878,24 +1861,20 @@ tdm_output_hwc_set_client_target_buffer(tdm_output *output, tbm_surface_h target
        }
 
        if (tdm_debug_dump & TDM_DUMP_FLAG_WINDOW) {
-               /* LCOV_EXCL_START */
                char str[TDM_PATH_LEN];
                static int i;
                snprintf(str, TDM_PATH_LEN, "target_window_%d_%03d",
                                 private_output->index, i++);
                tdm_helper_dump_buffer_str(target_buffer, tdm_debug_dump_dir, str);
-               /* LCOV_EXCL_STOP */
        }
 
        private_module = private_output->private_module;
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_set_client_target_buffer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_output->output_hwc_set_client_target_buffer(private_output->output_backend, target_buffer, damage);
@@ -1925,11 +1904,9 @@ tdm_output_hwc_unset_client_target_buffer(tdm_output *output)
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_unset_client_target_buffer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_output->output_hwc_unset_client_target_buffer(private_output->output_backend);
@@ -1979,31 +1956,25 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_get_client_target_buffer_layer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        layer = func_output->output_hwc_get_client_target_buffer_layer(private_output->output_backend,
                                                                                                                   &ret);
        if (!layer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("no assigned layer!!");
                return TDM_ERROR_INVALID_PARAMETER;
-               /* LCOV_EXCL_STOP */
        }
 
        private_layer = (tdm_private_layer*)layer;
 
        if (!func_output->output_hwc_get_client_target_buffer) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_ERR("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        buffer = func_output->output_hwc_get_client_target_buffer(private_output->output_backend,
@@ -2013,10 +1984,8 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
        else
                ret = tdm_layer_unset_buffer_internal(private_layer);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: layer set info(window)");
                _pthread_mutex_unlock(&private_display->lock);
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
@@ -2036,10 +2005,8 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
 
                ret = tdm_layer_set_info_internal(private_layer, &private_output->target_buffer_info);
                if (ret != TDM_ERROR_NONE) {
-                       /* LCOV_EXCL_START */
                        TDM_ERR("failed: layer set info(window)");
                        _pthread_mutex_unlock(&private_display->lock);
-                       /* LCOV_EXCL_STOP */
                        return ret;
                }
 
@@ -2048,11 +2015,9 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
 
        output_hwc_target_buffer_commit_handler = calloc(1, sizeof(tdm_private_output_hwc_target_buffer_commit_handler));
        if (!output_hwc_target_buffer_commit_handler) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: alloc memory");
                _pthread_mutex_unlock(&private_display->lock);
                return TDM_ERROR_OUT_OF_MEMORY;
-               /* LCOV_EXCL_STOP */
        }
 
        output_hwc_target_buffer_commit_handler->private_output = private_output;
@@ -2061,11 +2026,9 @@ tdm_output_hwc_commit_client_target_buffer(tdm_output *output, tdm_output_hwc_ta
 
        ret = tdm_layer_commit_internal(private_layer, _tdm_output_hwc_layer_commit_handler, output_hwc_target_buffer_commit_handler);
        if (ret != TDM_ERROR_NONE) {
-               /* LCOV_EXCL_START */
                TDM_ERR("failed: commit layer(target buffer)");
                free(output_hwc_target_buffer_commit_handler);
                _pthread_mutex_unlock(&private_display->lock);
-               /* LCOV_EXCL_STOP */
                return ret;
        }
 
@@ -2091,11 +2054,9 @@ tdm_output_hwc_get_video_supported_formats(tdm_output *output, const tbm_format
        func_output = &private_module->func_output;
 
        if (!func_output->output_hwc_get_video_supported_formats) {
-               /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = func_output->output_hwc_get_video_supported_formats(
@@ -2232,3 +2193,4 @@ tdm_output_choose_commit_per_vblank_mode(tdm_private_output *private_output, int
 
        return TDM_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */