GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MSG / V3-1-2 > test_msg_st / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

MSG_testOptions.c File Reference

Various tests of option handling. 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/MTS_msgs.h>
#include <MSG_prvdefs.h>
#include <MSG_tstdefs.h>

Classes

struct  _MSG_OptCount
 Structure to hold a bunch of counters used in options testing. More...

Defines

#define MSG_N_TRACE   ( 8 )
 Number of trace levels to try.

Typedefs

typedef struct _MSG_OptCount MSG_OptCount
 Typedef for struct _MSG_OptCount.

Functions

static void testOptions_cb (MSG_OutputModes mode, void *prm, const MSG_Message *msg)
 Output processor to capture statistics on options.
static void testOptions (void)
 Run the accumulation phase of the options test.
unsigned int MSG_testOptions ()
 Driver for the MSG options test suite.

Variables

static const char * s_state = "control state"
 The string "control state".
static const char * s_status = "status value"
 The string "status value".


Detailed Description

Various tests of option handling.

CVS $Id: MSG_testOptions.c,v 1.9 2011/03/25 01:05:53 apw Exp $
Author:
A.P.Waite

Function Documentation

static void testOptions ( void   )  [static]

Run the accumulation phase of the options test.

testOptions() runs the accumulation phase of the options test.

Referenced by MSG_testOptions().

static void testOptions_cb ( MSG_OutputModes  mode,
void *  prm,
const MSG_Message *  msg 
) [static]

Output processor to capture statistics on options.

Parameters:
mode (in) Output processor call (init, normal or exit)
prm (in) User parameter (for this output processor)
msg (in) Message structure
testOptions_cb() captures statistics on calls from different tasks running with different options.

References _MSG_OptCount::cnt, _MSG_OptCount::err, and MSG_N_TRACE.

Referenced by MSG_testOptions().


Generated on Tue Nov 29 17:46:24 2011 by  doxygen 1.5.8