IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2007, 11:09:31 AM (19 years ago)
Author:
gusciora
Message:

This is a fairly large checkin. Most of the files were modified so they have
the same basic structure and format for testing: reporting errors, checking
memory leaks etc. Several bug fixes are included as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tap_psConfigure.c

    r11685 r12781  
    1111 *  @author  Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    14  *  @date  $Date: 2007-02-07 22:50:18 $
     13 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     14 *  @date  $Date: 2007-04-10 21:09:31 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2424
    2525
    26 static psS32 psLibVersion00(void);
    27 
    28 
    2926psS32 main(psS32 argc, char* argv[])
    3027{
    31     plan_tests(1);
     28    plan_tests(2);
    3229
    33     psLibVersion00();
     30    // Simple test of psLibVersion()
     31    // XX: Must somehow verify the output is correct.
     32    {
     33        psMemId id = psMemGetId();
     34        char *stringVal = NULL;
     35        stringVal = psLibVersion();
     36        ok(stringVal != NULL && strlen(stringVal), "Version is cool");
     37        psFree(stringVal);
     38        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     39    }
    3440}
    3541
    36 
    37 static psS32 psLibVersion00(void)
    38 {
    39     diag("psLibVersion00");
    40 
    41     char *stringVal = NULL;
    42     stringVal = psLibVersion();
    43     ok( stringVal != NULL && strlen(stringVal), "Version is cool");
    44     psFree(stringVal);
    45 
    46     return 0;
    47 }
    48 
Note: See TracChangeset for help on using the changeset viewer.