tdm_output: do not include coverage checking tdm_output_commit function 96/235296/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 3 Jun 2020 10:13:12 +0000 (19:13 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 3 Jun 2020 10:13:15 +0000 (19:13 +0900)
hwc mode is default enabled.
if hwc mode enabled, tdm_output_commit is not supported.

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

index 13163e0..9dc60a9 100644 (file)
@@ -1529,6 +1529,7 @@ tdm_output_unset_voutput_commit(tdm_voutput *voutput)
        return TDM_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 INTERN tdm_error
 tdm_output_commit_internal(tdm_output *output, int sync, tdm_output_commit_handler func, void *user_data)
 {
@@ -1551,10 +1552,8 @@ tdm_output_commit_internal(tdm_output *output, int sync, tdm_output_commit_handl
        func_output = &private_module->func_output;
 
        if (!func_output->output_commit) {
-               /* LCOV_EXCL_START */
                TDM_WRN("not implemented!!");
                return TDM_ERROR_NOT_IMPLEMENTED;
-               /* LCOV_EXCL_STOP */
        }
 
        ret = tdm_output_get_dpms_internal(output, &dpms_value);
@@ -1569,10 +1568,8 @@ tdm_output_commit_internal(tdm_output *output, int sync, tdm_output_commit_handl
 
                output_commit_handler = calloc(1, sizeof(tdm_private_output_commit_handler));
                if (!output_commit_handler) {
-                       /* LCOV_EXCL_START */
                        TDM_ERR("failed: alloc memory");
                        return TDM_ERROR_OUT_OF_MEMORY;
-                       /* LCOV_EXCL_STOP */
                }
 
                if (private_module == private_display->virtual_module) {
@@ -1654,7 +1651,6 @@ tdm_output_commit_internal(tdm_output *output, int sync, tdm_output_commit_handl
        return ret;
 
 commit_failed:
-       /* LCOV_EXCL_START */
        if (output_commit_handler) {
                tdm_thread_cb_remove(private_output, TDM_THREAD_CB_OUTPUT_COMMIT, output_commit_handler, _tdm_output_thread_cb_commit, NULL);
                LIST_DEL(&output_commit_handler->link);
@@ -1662,7 +1658,6 @@ commit_failed:
        }
 
        return ret;
-       /* LCOV_EXCL_STOP */
 }
 
 EXTERN tdm_error
@@ -1710,6 +1705,7 @@ tdm_output_commit(tdm_output *output, int sync, tdm_output_commit_handler func,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN tdm_error
 tdm_output_set_mode(tdm_output *output, const tdm_output_mode *mode)