tdm_helper: do not include coverage checking layer_info related code. 97/235297/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 3 Jun 2020 10:27:29 +0000 (19:27 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 3 Jun 2020 10:27:44 +0000 (19:27 +0900)
hwc mode is default enabled.
if hwc mode enabled, tdm_layer related code is not supported

Change-Id: I5990e8f544e17533954478fb71a5109632d6fb2e
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tdm_helper.c

index 696fc58..469f9b0 100644 (file)
@@ -717,7 +717,7 @@ tdm_helper_capture_output(tdm_output *output, tbm_surface_h dst_buffer,
        TDM_RETURN_VAL_IF_FAIL(w >= 0, TDM_ERROR_INVALID_PARAMETER);
        TDM_RETURN_VAL_IF_FAIL(h >= 0, TDM_ERROR_INVALID_PARAMETER);
        TDM_RETURN_VAL_IF_FAIL(func != NULL, TDM_ERROR_INVALID_PARAMETER);
-
+/* LCOV_EXCL_START */
        err = tdm_output_get_layer_count(output, &count);
        if (err != TDM_ERROR_NONE) {
                TDM_ERR("tdm_output_get_layer_count fail(%d)\n", err);
@@ -745,6 +745,7 @@ tdm_helper_capture_output(tdm_output *output, tbm_surface_h dst_buffer,
        func(dst_buffer, data);
 
        return TDM_ERROR_NONE;
+/* LCOV_EXCL_STOP */
 }
 
 static char *
@@ -868,6 +869,7 @@ _tdm_helper_get_backend_information(tdm_private_module *private_module, char *re
                        continue;
                }
 
+/* LCOV_EXCL_START */
                LIST_FOR_EACH_ENTRY(private_layer, &private_output->layer_list, link) {
                        if (!private_layer->usable) {
                                tdm_info_layer info;
@@ -955,6 +957,7 @@ _tdm_helper_get_backend_information(tdm_private_module *private_module, char *re
                                }
                                }
                        }
+/* LCOV_EXCL_STOP */
                }
        }
        if (LIST_IS_EMPTY(&private_module->output_list))