IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

made psMemCheckLeaks to output problems to stderr.

File:
1 edited

Legend:

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

    r946 r949  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-06-09 19:27:09 $
     8 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-06-09 20:34:34 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    224224            // children is freed.
    225225            psImageFree(image);
    226             if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     226            if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    227227                psError(__func__,"Memory Leaks Detected");
    228228                return 64;
     
    235235    // #548: Verify program execution doesn't stop, if the input psImage structure pointer is null.
    236236    psImageFree(NULL);
    237     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     237    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    238238        psError(__func__,"Memory Leaks Detected");
    239239        return 64;
     
    249249    psImageFree(image);
    250250
    251     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     251    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    252252        psError(__func__,"Memory Leaks Detected");
    253253        return 64;
     
    521521    // Verify no memory leaks or corruption are detected for a psImage structure
    522522    // Verify no memory leaks or corruption are detected for a psImage structure
    523     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     523    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    524524        psError(__func__,"Memory Leaks Detected");
    525525        return 64;
     
    627627    psImageFree(img2);
    628628
    629     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     629    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    630630        psAbort(__func__,"Memory Leaks!");
    631631    }
     
    740740    }
    741741
    742     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     742    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    743743        psAbort(__func__,"Memory Leaks!");
    744744    }
     
    826826
    827827
    828     if (psMemCheckLeaks(currentId,NULL,NULL) != 0) {
     828    if (psMemCheckLeaks(currentId,NULL,stderr) != 0) {
    829829        psAbort(__func__,"Memory Leaks!");
    830830    }
Note: See TracChangeset for help on using the changeset viewer.