GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MSG / V3-0-0

Constituent: test_msg_mt     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

MSG_testBuffer.c File Reference

Various tests of buffering. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PBS/MBA.h"
#include "PBS/TASK.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_msgs.h"
#include "MSG_prvdefs.h"
#include "MSG_tstdefs.h"
#include "MTS_msgs.h"

Include dependency graph for MSG_testBuffer.c:

Include dependency graph

Defines

#define MSG_L_BUFTEST   40
 Transit buffer length (over minimum names).

#define MSG_L_MSGTEST   16
 Length of string used in test.


Functions

void * testBuffer_task (void *prm)
 Main routine for buffering tests.

unsigned int testBufferMsg (void)
 Test transit buffer overflows.

void testBufferMsg_cb (MSG_OutputModes mode, void *prm, const MSG_Message *msg)
 Output processor to check buffer overflows.

unsigned int MSG_testBuffer ()
 Driver for the MSG buffering test suite.


Variables

const char * s_state = "control state"
 The string "control state".

const char * s_status = "status value"
 The string "status value".

const char * s_taskname = "MaxLen_TaskName"
 A maximally long task name.

const char digit [10] = { '-', '1', '2', '3', '4', '5', '6', '7', '8', '9' }
 Slightly off list of digits.


Detailed Description

Various tests of buffering.

CVS $Id: MSG_testBuffer.c,v 1.6 2004/12/12 06:45:40 apw Exp $
Author:
A.P.Waite

Function Documentation

void * testBuffer_task void *  prm  )  [static]
 

Main routine for buffering tests.

Parameters:
prm (in) User parameter (not used)
testBuffer_task() walks through a variety of buffer boundary conditions.

Here is the call graph for this function:

void testBufferMsg_cb MSG_OutputModes  mode,
void *  prm,
const MSG_Message *  msg
[static]
 

Output processor to check buffer overflows.

Parameters:
mode (in) Output processor call (init, normal or exit)
prm (in) User parameter (for this output processor)
msg (in) Message structure
testBufferMsg_cb() handles transit buffer overflow testing.

Here is the call graph for this function:


Generated on Sun Jul 17 10:07:30 2005 by doxygen 1.3.3