IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1291


Ignore:
Timestamp:
Jul 23, 2004, 10:20:33 AM (22 years ago)
Author:
evanalst
Message:

Add check for number of memory leaks.

File:
1 edited

Legend:

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

    r1233 r1291  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2004-07-15 23:52:34 $
     16 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2004-07-23 20:20:33 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7878    printPositiveTestHeader(stdout, "psVector", "Free S32 vector");
    7979    psFree(psVec);
    80     psMemCheckLeaks(0, NULL, stdout);
     80    int leaks = psMemCheckLeaks(0, NULL, stdout);
     81    if(leaks != 0) {
     82        printf("ERROR: Found %d memory leaks\n",leaks);
     83    }
    8184    int nBad = psMemCheckCorruption(0);
    8285    if(nBad) {
Note: See TracChangeset for help on using the changeset viewer.