IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2004, 9:27:09 AM (22 years ago)
Author:
desonia
Message:

Added check of psMemCheckLeaks return value.

File:
1 edited

Legend:

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

    r939 r946  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-06-09 00:28:09 $
     8 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-06-09 19:27:09 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    224224            // children is freed.
    225225            psImageFree(image);
    226             psMemCheckLeaks(currentId,NULL,NULL);
     226            if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     227                psError(__func__,"Memory Leaks Detected");
     228                return 64;
     229            }
    227230            psMemCheckCorruption(1);
    228231
     
    232235    // #548: Verify program execution doesn't stop, if the input psImage structure pointer is null.
    233236    psImageFree(NULL);
    234     psMemCheckLeaks(currentId,NULL,NULL);
     237    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     238        psError(__func__,"Memory Leaks Detected");
     239        return 64;
     240    }
    235241    psMemCheckCorruption(1);
    236242
     
    243249    psImageFree(image);
    244250
    245     psMemCheckLeaks(currentId,NULL,NULL);
     251    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     252        psError(__func__,"Memory Leaks Detected");
     253        return 64;
     254    }
    246255    psMemCheckCorruption(1);
    247256
     
    512521    // Verify no memory leaks or corruption are detected for a psImage structure
    513522    // Verify no memory leaks or corruption are detected for a psImage structure
    514     psMemCheckLeaks(currentId,NULL,NULL);
     523    if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     524        psError(__func__,"Memory Leaks Detected");
     525        return 64;
     526    }
    515527    psMemCheckCorruption(1);
    516528
Note: See TracChangeset for help on using the changeset viewer.