IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1300


Ignore:
Timestamp:
Jul 27, 2004, 12:48:19 PM (22 years ago)
Author:
evanalst
Message:

Add checks for memory leaks.

Location:
trunk/psLib/test/collections
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psVectorSort_03.c

    r1233 r1300  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-07-15 23:52:34 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-07-27 22:48:19 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5151    psFree(in);
    5252    psFree(out);
    53     psMemCheckLeaks(0, NULL, stdout);
     53    int nLeaks = psMemCheckLeaks(0, NULL, stdout);
     54    if(nLeaks) {
     55        printf("ERROR: Found %d memory leaks\n", nLeaks);
     56    }
    5457    int nBad = psMemCheckCorruption(0);
    5558    if(nBad) {
  • trunk/psLib/test/collections/tst_psVectorSort_04.c

    r1233 r1300  
    99 *  @author  Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    12  *  @date  $Date: 2004-07-15 23:52:34 $
     11 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     12 *  @date  $Date: 2004-07-27 22:48:19 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434    printPositiveTestHeader(stdout, "psVectorSort", "Free vectors");
    3535    psFree(goodOut);
    36     psMemCheckLeaks(0, NULL, stdout);
     36    int nLeaks = psMemCheckLeaks(0, NULL, stdout);
     37    if(nLeaks) {
     38        printf("ERROR: Found %d memory blocks\n", nLeaks);
     39    }
    3740    int nBad = psMemCheckCorruption(0);
    3841    if(nBad) {
Note: See TracChangeset for help on using the changeset viewer.