GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCI / V6-0-4 > lci_test_cnt / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

test_cue.c File Reference

Test the cue functions. More...

#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.


Detailed Description

Test the cue functions.

Author:
James Swain & Owen Saxton
Id
test_cue.c,v 1.5 2011/03/29 19:34:34 saxton Exp

Function Documentation

WUT_cb_status signal ( void *  prm,
WUT_tmr *  wut 
) [static]

Called back when the wake-up timer goes off and signals the cue.

Parameters:
prm Pointer to the LCI_cue structure
wut Pointer to the wake-up timer
Return values:
WUT_K_STATE_CHANGE_YES 

Referenced by test_lost(), and test_signal().

unsigned test_cue ( void   ) 

Main test function for the cue tests.

Return values:
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.

Returns:
0 if the test is passed, or line number of any failure

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.

Returns:
0 if the test is passed, or line number of any failure

References LCI_CUE_SIGNALED, and signal().

unsigned test_timeout ( void   )  [static]

Setup a cue and wait until it times out.

Return values:
0 If the test is passed
Line number of any failure

References LCI_CUE_TIMEDOUT.


Variable Documentation

Test cue_test[] [static]

Initial value:

 { {"Timeout", test_timeout },
                           {"Signal",  test_signal},
                           {"Lost",    test_lost},
                           {"NULL",    NULL} }
NULL terminated list of Tests to run.


Generated on Wed Nov 21 20:50:41 2012 by  doxygen 1.5.8