GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBI / dev > test_ofs / rad750


Interface   Data Structures   File List   Data Fields   Globals  

test_ofs.c File Reference

Unit test of the macros in PBI/Ofs.h. More...

#include <stdio.h>
#include <PBI/Ofs.h>

Defines

#define TEST_MISSION
 Symbol representing the string stating the mission of this test. It is purely here to make the code read nicer.

Functions

int main (int argc, char **argv)
 Standard main entry point for Unix platforms. It merely calls the testing routine test_ofs ().
int test_ofs (void)
 The test program itself and also the entry point for running this test on VxWork's platforms.


Detailed Description

Unit test of the macros in PBI/Ofs.h.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: test_ofs.c,v 1.4 2011/03/24 20:50:58 apw Exp $

To run the program type


   On Unix platforms: 
   $ test_ofs

   On VxWorks
   > test_ofs ()

 

The program returns 0 if successful, else -1.


Function Documentation

int main ( int  argc,
char **  argv 
)

Standard main entry point for Unix platforms. It merely calls the testing routine test_ofs ().

Return values:
0,if successful
-1,if unsuccessful
This program takes no arguments.

References test_ofs().

int test_ofs ( void   ) 

The test program itself and also the entry point for running this test on VxWork's platforms.

Return values:
0,if successful
-1,if unsuccessful

References COUNT_OF, OFFSET_OF, and TEST_MISSION.

Referenced by main().


Generated on Thu Aug 4 14:06:51 2011 by  doxygen 1.5.8