int event_id = 0;
time_t now_t = 0;
+ DBG("add 1 min, daily");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
int event_id = 0;
time_t now_t = 0;
+ DBG("add 1 min, weekly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 min, monthly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 min, yearly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 hour, once");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, once");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, once");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, once");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 min, daily");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, daily");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
struct tm now_s = {0};
/* localtime weekly */
+ DBG("add 1 min, weekly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, weekly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 min, monthly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, monthly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */
time_t now_t = 0;
struct tm now_s = {0};
+ DBG("add 1 min, yearly");
now_t = time(NULL);
now_t += 5;
now_t += 60; /* add 1 min */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 hour, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60); /* add 1 hour */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 day, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24); /* add 1 day */
ret = _delete_event(event_id);
assert_eq(ret, CALENDAR_ERROR_NONE);
+ DBG("add 1 week, yearly");
now_t = time(NULL);
now_t += 5;
now_t += (60 * 60 * 24 * 7); /* add 1 week */