GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIM / V1-19-1

Constituent: lim_unit_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

lim_test_pool.c File Reference

Test the LIM package pool functions. More...

#include <string.h>
#include "ITC/ITC_pubdefs.h"
#include "LIM/LIM_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "../src/LIM_pool.h"
#include "lim_unit_test.h"

Include dependency graph for lim_test_pool.c:


Data Structures

struct  _lim_Pool_Info
 LIM pool test state. More...

Typedefs

typedef _lim_Pool_Info lim_Pool_Info
 Typedef for _lim_Pool_Info.

Functions

static int lim_init_wrap (test_Test_Descriptor *td_p, int id, lim_Pool_Info *info_p)
 Call LIM_pool_init() and validate the results.
static int lim_shutdown_wrap (test_Test_Descriptor *td_p, int id, lim_Pool_Info *info_p)
 Call LIM_poolshutdown() and validate the results.
static int lim_alloc_wrap (test_Test_Descriptor *td_p, int id, lim_Pool_Info *info_p)
 Call LIM_pool_alloc() and validate the results.
static void lim_free_cb (ITC_QueueItem *qitem_p, unsigned int status_in, void *parm_0, void *parm_1, void *parm_2, unsigned int tx)
 Callback for LIM memory pool packet frees.
static int lim_free_wrap (test_Test_Descriptor *td_p, int id, lim_Pool_Info *info_p)
 Call pool free routine and validate the results.
void lim_test_pool (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for LIM pool functions.

Detailed Description

Test the LIM package pool functions.

**  CVS $Id: lim_test_pool.c,v 1.6 2005/12/23 18:04:58 dmay Exp $
**  

Function Documentation

int lim_alloc_wrap test_Test_Descriptor td_p,
int  id,
lim_Pool_Info info_p
[static]
 

Call LIM_pool_alloc() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to pool test state.
Return values:
0 Success.
-1 Failure.

void lim_free_cb ITC_QueueItem *  qitem_p,
unsigned int  status_in,
void *  parm_0,
void *  parm_1,
void *  parm_2,
unsigned int  tx
[static]
 

Callback for LIM memory pool packet frees.

Parameters:
qitem_p Pointer to queue item.
status_in Completion code.
parm_0 Callback parameter 0 (unused).
parm_1 Callback parameter 1 (unused).
parm_2 Callback parameter 2 (location to store status_in).
tx Flag indicating sender-side failure (unused).
Returns:
Nothing.

int lim_free_wrap test_Test_Descriptor td_p,
int  id,
lim_Pool_Info info_p
[static]
 

Call pool free routine and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to pool test state.
Return values:
0 Success.
-1 Failure.

int lim_init_wrap test_Test_Descriptor td_p,
int  id,
lim_Pool_Info info_p
[static]
 

Call LIM_pool_init() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to pool test state.
Return values:
0 Success.
-1 Failure.

int lim_shutdown_wrap test_Test_Descriptor td_p,
int  id,
lim_Pool_Info info_p
[static]
 

Call LIM_poolshutdown() and validate the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to pool test state.
Return values:
0 Success.
-1 Failure.

void lim_test_pool test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for LIM pool functions.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Returns:
Nothing.


Generated on Mon Jan 14 12:16:02 2008 by  doxygen 1.4.4