IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1364


Ignore:
Timestamp:
Aug 2, 2004, 8:30:10 AM (22 years ago)
Author:
desonia
Message:

fixed a logical problem in main() return value.

Location:
trunk/psLib/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageExtraction.c

    r1358 r1364  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-07-31 02:27:16 $
     8*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-02 18:30:10 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030int main( int argc, char* argv[] )
    3131{
    32     return runTestSuite( stderr, "psImage", tests, argc, argv );
     32    return ! runTestSuite( stderr, "psImage", tests, argc, argv );
    3333}
    3434
  • trunk/psLib/test/tst_template.c

    r1334 r1364  
    11/** @file  tst_psImageManip.c
    2  *
    3  *  @brief Contains the tests for psImageManip.[ch]
    4  *
    5  *
    6  *  @author Robert DeSonia, MHPCC
    7  *
    8  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-07-29 19:29:40 $
    10  *
    11  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    12  */
     2*
     3*  @brief Contains the tests for psImageManip.[ch]
     4*
     5*
     6*  @author Robert DeSonia, MHPCC
     7*
     8*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-02 18:30:10 $
     10*
     11*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     12*/
    1313
    1414#include "psTest.h"
    1515#include "pslib.h"
    1616
    17 static int test1(void);
    18 static int test2(void);
    19 static int test3(void);
     17static int test1( void );
     18static int test2( void );
     19static int test3( void );
    2020
    2121// test descrription consists of:
     
    3636//
    3737testDescription tests[] = {
    38                               {test1,1111,"psFunctionBar",0,false},
    39                               {test2,1113,"psFunctionFoo",0,false},
    40                               {test3,1114,"psFunctionFunk",0,false},
    41 
     38                              {
     39                                  test1, 1111, "psFunctionBar", 0, false
     40                              },
     41                              {
     42                                  test2, 1113, "psFunctionFoo", 0, false
     43                              },
     44                              {
     45                                  test3, 1114, "psFunctionFunk", 0, false
     46                              },
     47                             
    4248                              // testpoint #1112 handled by same test function as #1111
    43                               {test1,1112,"psFunctionBang",0,true},
    44 
     49                              {
     50                                  test1, 1112, "psFunctionBang", 0, true
     51                              },
     52                             
    4553                              // A null terminates the testDescription list
    46                               {NULL}
     54                              {
     55                                  NULL
     56                              }
    4757                          };
    48 
    49 int main(int argc, char* argv[])
     58                         
     59int main( int argc, char* argv[] )
    5060{
    51     psLogSetLevel(PS_LOG_INFO);
    52 
    53     return runTestSuite(stderr,"psImage",tests,argc,argv);
     61    psLogSetLevel( PS_LOG_INFO );
     62   
     63    return ( ! runTestSuite( stderr, "psImage", tests, argc, argv ) );
    5464}
    5565
    56 int test1(void)
     66int test1( void )
    5767{
    5868    // no need to check for memory leaks, as the runTestSuite does that for you.
    59 
     69   
    6070    // here is where one implements the tests for generally a single testpoint.
    61 
     71   
    6272    return 0;  // the value that indicates success is part of the testDescription
    6373}
    6474
    65 int test2(void)
     75int test2( void )
    6676{
    6777    // no need to check for memory leaks, as the runTestSuite does that for you.
    68 
     78   
    6979    // here is where one implements the tests for generally a single testpoint.
    70 
     80   
    7181    return 0;  // the value that indicates success is part of the testDescription
    7282}
    7383
    74 int test3(void)
     84int test3( void )
    7585{
    7686    // no need to check for memory leaks, as the runTestSuite does that for you.
    77 
     87   
    7888    // here is where one implements the tests for generally a single testpoint.
    79 
     89   
    8090    return 0;  // the value that indicates success is part of the testDescription
    8191}
Note: See TracChangeset for help on using the changeset viewer.