Improves code coverage 48/299748/1
authorInkyun Kil <inkyun.kil@samsung.com>
Tue, 10 Oct 2023 00:53:36 +0000 (09:53 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Tue, 10 Oct 2023 00:53:36 +0000 (09:53 +0900)
Change-Id: I30ecfc795e575e2d469d371fdda413b252058b93
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/message_port_local.c

index f7fcce9..e8a6f04 100644 (file)
@@ -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);