summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInkyun Kil <inkyun.kil@samsung.com>2023-10-10 09:53:36 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2023-10-10 09:53:36 +0900
commit9b8dde68fa1630d1117befdb571e3b58cb71455f (patch)
tree8fdd8715924930cf63f31b5ebb482dca16290c49
parent788d2ebe7695e3fd9f964920e049df436d617a98 (diff)
downloadmessage-port-9b8dde68fa1630d1117befdb571e3b58cb71455f.tar.gz
message-port-9b8dde68fa1630d1117befdb571e3b58cb71455f.tar.bz2
message-port-9b8dde68fa1630d1117befdb571e3b58cb71455f.zip
Improves code coverage
Change-Id: I30ecfc795e575e2d469d371fdda413b252058b93 Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
-rw-r--r--src/message_port_local.c6
1 files changed, 0 insertions, 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);