src/Testing/SingleTest.cc
/* Each test has a pointer to a function that is used for actual testing.  This
   test is not invoked unless the user requests that it be run.  The functions
   in this section allow for that. Note that once a test has been run test 
   status flag is set (default = -1 ==> untested) so that subsequent testing
   within a loop can readily be avoided. Also note that each test may produce
   output that is sent to the specified output stream. The amount of output
   often depends upon the current class runlevel (TestRunLevel)              */
Each test has a pointer to a function that is used for actual testing.  This
test is not invoked unless the user requests that it be run.  The functions
in this section allow for that. Note that once a test has been run test
status flag is set (default = -1 ==> untested) so that subsequent testing
within a loop can readily be avoided. Also note that each test may produce
output that is sent to the specified output stream. The amount of output
often depends upon the current class runlevel (TestRunLevel)
Each test has a pointer to a function that is used for actual testing . This test is not invoked unless the user requests that it be run . The functions in this section allow for that . Note that once a test has been run test status flag is set ( default = - 1 == > untested ) so that subsequent testing within a loop can readily be avoided . Also note that each test may produce output that is sent to the specified output stream . The amount of output often depends upon the current class runlevel ( TestRunLevel )
int SingleTest::runtest(ostream& ostr, int force)
  {
  if(force)					
    TestStatus = (*TestTest)(ostr,TestRunLevel);
  else if(TestStatus == -1)			
    TestStatus = (*TestTest)(ostr,TestRunLevel);
  return TestStatus;
  }
int SingleTest :: runtest ( ostream & ostr , int force ) { if ( force ) TestStatus = ( * TestTest ) ( ostr , TestRunLevel ) ; else if ( TestStatus == -1 ) TestStatus = ( * TestTest ) ( ostr , TestRunLevel ) ; return TestStatus ; }
Each test has a pointer to a function that is used for actual testing.
Each test has a pointer to a function that is used for actual testing .
// If forced, we run test even  // if it has been run before // If not, we run test only if // it has not been run before