IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2393


Ignore:
Timestamp:
Nov 22, 2004, 11:22:44 AM (22 years ago)
Author:
evanalst
Message:

Update psMemCheckLeaks function.

Location:
trunk/psLib/test
Files:
4 edited

Legend:

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

    r2388 r2393  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-11-19 21:58:59 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-11-22 21:22:44 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    119119        psFree(mySt[i]);
    120120    }
    121     if( psMemCheckLeaks(0, NULL, stdout) != 0) {
     121    if( psMemCheckLeaks(0, NULL, stdout, false) != 0) {
    122122        psError(PS_ERR_UNKNOWN,true,"Memory leaks detected.");
    123123        return 110;
  • trunk/psLib/test/collections/tst_psVectorSort_04.c

    r2204 r2393  
    99 *  @author  Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    12  *  @date  $Date: 2004-10-27 00:57:33 $
     11 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     12 *  @date  $Date: 2004-11-22 21:22:44 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434    printPositiveTestHeader(stdout, "psVectorSort", "Free vectors");
    3535    psFree(goodOut);
    36     psS32 nLeaks = psMemCheckLeaks(0, NULL, stdout);
     36    psS32 nLeaks = psMemCheckLeaks(0, NULL, stdout, false);
    3737    if(nLeaks) {
    3838        printf("ERROR: Found %d memory blocks\n", nLeaks);
  • trunk/psLib/test/dataManip/tst_psMinimize07.c

    r2250 r2393  
    8282
    8383    psMemCheckCorruption(1);
    84     memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
     84    memLeaks = psMemCheckLeaks(currentId,NULL,NULL,false);
    8585    if (0 != memLeaks) {
    8686        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
     
    149149
    150150    psMemCheckCorruption(1);
    151     memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
     151    memLeaks = psMemCheckLeaks(currentId,NULL,NULL,false);
    152152    if (0 != memLeaks) {
    153153        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
  • trunk/psLib/test/sysUtils/tst_psMemory.c

    r2273 r2393  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-11-04 01:05:00 $
     8*  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-11-22 21:20:32 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    385385    psLogMsg( __func__, PS_LOG_INFO, "following psMemCheckLeaks call should produce one instance." );
    386386
    387     nLeaks = psMemCheckLeaks( currentId, &blks, stderr );
     387    nLeaks = psMemCheckLeaks( currentId, &blks, stderr, false );
    388388
    389389    if ( nLeaks != 1 ) {
     
    402402
    403403    psLogMsg( __func__, PS_LOG_INFO, "Testing psMemCheckLeaks again with a different leak location" );
    404     psMemCheckLeaks(currentId,NULL,stderr);
     404    psMemCheckLeaks(currentId,NULL,stderr, false);
    405405
    406406    for ( lcv = 0;lcv < numBuffers;lcv++ ) {
     
    415415    psLogMsg( __func__, PS_LOG_INFO, "following psMemCheckLeaks call should produce one error." );
    416416
    417     nLeaks = psMemCheckLeaks( currentId, &blks, stderr );
     417    nLeaks = psMemCheckLeaks( currentId, &blks, stderr, false );
    418418
    419419    if ( nLeaks != 1 ) {
     
    445445    psLogMsg( __func__, PS_LOG_INFO, "following psMemCheckLeaks call should produce two errors." );
    446446
    447     nLeaks = psMemCheckLeaks( currentId, &blks, stderr );
     447    nLeaks = psMemCheckLeaks( currentId, &blks, stderr, false );
    448448
    449449    if ( nLeaks != 2 ) {
Note: See TracChangeset for help on using the changeset viewer.