From 9b8dde68fa1630d1117befdb571e3b58cb71455f Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Tue, 10 Oct 2023 09:53:36 +0900 Subject: [PATCH] Improves code coverage Change-Id: I30ecfc795e575e2d469d371fdda413b252058b93 Signed-off-by: Inkyun Kil --- src/message_port_local.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/message_port_local.c b/src/message_port_local.c index f7fcce9..e8a6f04 100644 --- a/src/message_port_local.c +++ b/src/message_port_local.c @@ -860,11 +860,9 @@ static int __push_delayed_message(port_list_info_s *port_info, message->local_port_len = tmp_size; message->local_port_name = strdup(local_port); if (message->local_port_name == NULL) { -/* LCOV_EXCL_START */ _LOGE("local_port_name strdup fail"); ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY; goto out; -/* LCOV_EXCL_STOP */ } message->is_bidirection = is_bidirection; message->local_trusted = local_trusted; @@ -872,11 +870,9 @@ static int __push_delayed_message(port_list_info_s *port_info, message->data_len = data_len; message->data = (bundle_raw *)strdup((const char *)kb_data); if (message->data == NULL) { -/* LCOV_EXCL_START */ _LOGE("data strdup fail"); ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY; goto out; -/* LCOV_EXCL_STOP */ } @@ -889,11 +885,9 @@ static int __push_delayed_message(port_list_info_s *port_info, if (port_info->delay_src_id == 0) { delay_info = (delay_port_info *)calloc(1, sizeof(delay_port_info)); if (delay_info == NULL) { -/* LCOV_EXCL_START */ _LOGE("out of memory"); ret = MESSAGE_PORT_ERROR_OUT_OF_MEMORY; goto out; -/* LCOV_EXCL_STOP */ } ret = __create_port_key_info(port_info, &delay_info->key_info); -- 2.7.4