libamxp
1.4.0
Patterns C Implementation
|
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/signalfd.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <cmocka.h>
#include <amxc/amxc_macros.h>
#include <amxc/amxc.h>
#include <amxp/amxp_scheduler.h>
#include "test_scheduler.h"
Go to the source code of this file.
Functions | |
static void | read_sigalrm (void) |
static void | handle_events (void) |
static void | check_scheduler (amxp_scheduler_t *scheduler) |
static void | check_schedule_trigger (const char *const sig_name, const amxc_var_t *const data, void *const priv) |
static void | dump_schedule_trigger (const char *const sig_name, const amxc_var_t *const data, UNUSED void *const priv) |
static void | check_start_stop_trigger (const char *const sig_name, const amxc_var_t *const data, void *const priv) |
static void | delete_schedule (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, void *const priv) |
void | test_can_add_schedules (UNUSED void **state) |
void | test_can_remove_schedules (UNUSED void **state) |
void | test_scheduler_triggers_signals (UNUSED void **state) |
void | test_scheduler_using_local_time (UNUSED void **state) |
void | test_disabled_scheduler_does_not_trigger_signals (UNUSED void **state) |
void | test_scheduler_can_trigger_start_stop (UNUSED void **state) |
void | test_scheduler_can_remove_schedule_in_callback (UNUSED void **state) |
void | test_scheduler_adding_running_triggers_start_duration (UNUSED void **state) |
void | test_scheduler_adding_running_triggers_start_end (UNUSED void **state) |
void | test_scheduler_can_disable_running_items (UNUSED void **state) |
void | test_scheduler_can_disable_items (UNUSED void **state) |
void | test_scheduler_add_invalid_item_fails (UNUSED void **state) |
Variables | |
static int32_t | trigger_counter = 0 |
|
static |
Definition at line 131 of file test_scheduler.c.
|
static |
Definition at line 107 of file test_scheduler.c.
|
static |
Definition at line 157 of file test_scheduler.c.
|
static |
Definition at line 176 of file test_scheduler.c.
|
static |
Definition at line 149 of file test_scheduler.c.
|
static |
Definition at line 102 of file test_scheduler.c.
|
static |
Definition at line 79 of file test_scheduler.c.
void test_can_add_schedules | ( | UNUSED void ** | state | ) |
Definition at line 184 of file test_scheduler.c.
void test_can_remove_schedules | ( | UNUSED void ** | state | ) |
Definition at line 214 of file test_scheduler.c.
void test_disabled_scheduler_does_not_trigger_signals | ( | UNUSED void ** | state | ) |
Definition at line 358 of file test_scheduler.c.
void test_scheduler_add_invalid_item_fails | ( | UNUSED void ** | state | ) |
Definition at line 656 of file test_scheduler.c.
void test_scheduler_adding_running_triggers_start_duration | ( | UNUSED void ** | state | ) |
Definition at line 471 of file test_scheduler.c.
void test_scheduler_adding_running_triggers_start_end | ( | UNUSED void ** | state | ) |
Definition at line 506 of file test_scheduler.c.
void test_scheduler_can_disable_items | ( | UNUSED void ** | state | ) |
Definition at line 605 of file test_scheduler.c.
void test_scheduler_can_disable_running_items | ( | UNUSED void ** | state | ) |
Definition at line 558 of file test_scheduler.c.
void test_scheduler_can_remove_schedule_in_callback | ( | UNUSED void ** | state | ) |
Definition at line 446 of file test_scheduler.c.
void test_scheduler_can_trigger_start_stop | ( | UNUSED void ** | state | ) |
Definition at line 411 of file test_scheduler.c.
void test_scheduler_triggers_signals | ( | UNUSED void ** | state | ) |
Definition at line 240 of file test_scheduler.c.
void test_scheduler_using_local_time | ( | UNUSED void ** | state | ) |
Definition at line 299 of file test_scheduler.c.
|
static |
Definition at line 77 of file test_scheduler.c.