GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCI / V6-0-4 > lci_test_cnt / mv2304
#include <test_p.h>
#include <lci_p.h>
#include <LCI/LCI_msgs.h>
#include <MSG/MSG_pubdefs.h>
#include <PBS/WUT.h>
#include <stdio.h>
Functions | |
static unsigned | test_timeout (void) |
Setup a cue and wait until it times out. | |
static unsigned | test_signal (void) |
Create and wait on a cue, use the wakeup timer to signal. | |
static unsigned | test_lost (void) |
Recreate the sequence of timedout and signalled cues that occure when events are lost. | |
static WUT_cb_status | signal (void *prm, WUT_tmr *wut) |
Called back when the wake-up timer goes off and signals the cue. | |
unsigned | test_cue (void) |
Main test function for the cue tests. | |
Variables | |
static Test | cue_test [] |
NULL terminated list of Tests to run. |
WUT_cb_status signal | ( | void * | prm, | |
WUT_tmr * | wut | |||
) | [static] |
Called back when the wake-up timer goes off and signals the cue.
prm | Pointer to the LCI_cue structure | |
wut | Pointer to the wake-up timer |
WUT_K_STATE_CHANGE_YES |
Referenced by test_lost(), and test_signal().
unsigned test_cue | ( | void | ) |
Main test function for the cue tests.
Number | of tests that failed |
Referenced by main().
unsigned test_lost | ( | void | ) | [static] |
Recreate the sequence of timedout and signalled cues that occure when events are lost.
References LCI_CUE_SIGNALED, LCI_CUE_TIMEDOUT, and signal().
unsigned test_signal | ( | void | ) | [static] |
Create and wait on a cue, use the wakeup timer to signal.
References LCI_CUE_SIGNALED, and signal().
unsigned test_timeout | ( | void | ) | [static] |
Setup a cue and wait until it times out.
0 | If the test is passed | |
Line | number of any failure |
References LCI_CUE_TIMEDOUT.
Initial value:
{ {"Timeout", test_timeout }, {"Signal", test_signal}, {"Lost", test_lost}, {"NULL", NULL} }