GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > test_pbsinit / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

test_pbsinit.c File Reference

Unit test of the PBS initialize/shutdown and reinitialization sequence. More...

#include <stdio.h>
#include <PBS/PBS.h>


Detailed Description

Unit test of the PBS initialize/shutdown and reinitialization sequence.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id

This tests that PBS initialization and shutdown procedure. This is really a bare bones test, since many of the possible gotcha's have to do with cleaning up user context.
The main issue is to test the initialization. The shutdown is largely a convenience for debugging. Making it work 100% correctly in all circumstances (read here user misuse, like leaving timers outstanding while doing a shutdown), would impose a great runtime penalty.
Running the test
This test can be run from the command line of VxWorks prompt with:
   $ test_pbsinit

Generated on Mon Aug 1 14:49:50 2011 by  doxygen 1.5.8