IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2004, 9:57:37 AM (22 years ago)
Author:
desonia
Message:

added psTraceReset before checking for memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/psTest.c

    r1695 r1699  
    2121#include "psMemory.h"
    2222#include "psError.h"
     23#include "psTrace.h"
    2324
    2425#define HEADER_TOP    "/***************************** TESTPOINT ******************************************\\\n"
     
    149150            int retVal = fcn();
    150151            psErrorClear(); // clear the error stack before checking for leaks
     152            psTraceReset();
    151153            if ( retVal == 0 ) { // only bother checking memory if test executed to end.
    152154                if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) {
     
    174176        childReturn = fcn();
    175177        psErrorClear(); // clear the error stack before checking for leaks
     178        psTraceReset();
    176179        if ( childReturn == 0 ) { // only bother checking memory if test executed to end.
    177180            if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) {
Note: See TracChangeset for help on using the changeset viewer.