Add lcov comment 02/153302/1
authorjusung son <jusung07.son@samsung.com>
Thu, 28 Sep 2017 08:18:49 +0000 (17:18 +0900)
committerjusung son <jusung07.son@samsung.com>
Thu, 28 Sep 2017 08:18:49 +0000 (17:18 +0900)
Change-Id: Id377a5e02da673e6e6a22c8bd18eceb44652742f
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/alarm.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ca08093..b3d97ef
@@ -60,6 +60,7 @@ static int alarm_registered_alarm_cb_broker(int alarm_id, void *user_data)
        return 0;
 }
 
+/* LCOV_EXCL_START */
 static int convert_error_code_to_alarm(const char *function, alarm_error_t alarm_error)
 {
        switch (alarm_error) {
@@ -103,6 +104,7 @@ static int convert_error_code_to_alarm(const char *function, alarm_error_t alarm
                return ALARM_ERROR_INVALID_PARAMETER;
        }
 }
+/* LCOV_EXCL_STOP */
 
 int alarm_get_scheduled_date(int alarm_id, struct tm *date)
 {
@@ -309,8 +311,10 @@ int alarm_schedule_once_at_date(app_control_h app_control, struct tm *date, int
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        internal_time.year = date->tm_year + 1900;
@@ -363,8 +367,10 @@ int alarm_schedule_noti_once_at_date(notification_h noti, struct tm *date, int *
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        internal_time.year = date->tm_year + 1900;
@@ -619,8 +625,10 @@ int alarm_get_app_control(int alarm_id, app_control_h *app_control)
 
        error_code = app_control_create_request(b, app_control);
        if (error_code != APP_CONTROL_ERROR_NONE) {
+               /* LCOV_EXCL_START */
                bundle_free(b);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        bundle_free(b);
@@ -768,8 +776,10 @@ int alarm_update_delay(int alarm_id, int delay)
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        result = alarmmgr_set_time(alarm_info, internal_time);
@@ -798,8 +808,10 @@ int alarm_update_date(int alarm_id, struct tm *date)
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        internal_time.year = date->tm_year + 1900;
@@ -835,8 +847,10 @@ int alarm_update_period(int alarm_id, int period)
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        if (period == 0) {
@@ -872,8 +886,10 @@ int alarm_update_week_flag(int alarm_id, int week_flag)
 
        alarm_info = alarmmgr_create_alarm();
        if (alarm_info == NULL) {
+               /* LCOV_EXCL_START */
                LOGE("OUT_OF_MEMORY(0x%08x)", ALARM_ERROR_OUT_OF_MEMORY);
                return ALARM_ERROR_OUT_OF_MEMORY;
+               /* LCOV_EXCL_STOP */
        }
 
        if (week_flag == 0) {