GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCI / V6-0-1 > lci_test_cnt / rad750


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

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 

unsigned test_cue ( void   ) 

Main test function for the cue tests.

Return values:
Number of tests that failed

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

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

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


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 Tue May 25 13:36:08 2010 by  doxygen 1.5.3