GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-1 > lim_unit_test / sun-gcc
#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"
Classes | |
struct | _lim_Pool_Info |
LIM pool test state. More... | |
Typedefs | |
typedef struct _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. |
** CVS $Id: lim_test_pool.c,v 1.6 2005/12/23 18:04:58 dmay Exp $ **
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to pool test state. |
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.
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). |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to pool test state. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to pool test state. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to pool test state. |
0 | Success. | |
-1 | Failure. |
void lim_test_pool | ( | test_Test_Descriptor * | td_p, | |
const unsigned int | bit_mask | |||
) |
Unit test for LIM pool functions.
td_p | Pointer to test descriptor. | |
bit_mask | Bitmask ID for this subtest. |