IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 620


Ignore:
Timestamp:
May 7, 2004, 3:19:28 PM (22 years ago)
Author:
harman
Message:

Added call to psMemCheckCorruption

Location:
trunk/psLib/test/collections
Files:
16 edited

Legend:

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

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6868    psIntArrayFree(psArr);
    6969    psMemCheckLeaks(0, NULL, stdout);
     70    int nBad = psMemCheckCorruption(0);
     71    if(nBad) {
     72        printf("ERROR: Found %d bad memory blocks\n", nBad);
     73    }
    7074    printFooter(stdout, "psArray" ,"Free integer array", true);
    7175
  • trunk/psLib/test/collections/tst_psArray_02.c

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7070    psFloatArrayFree(psArr);
    7171    psMemCheckLeaks(0, NULL, stdout);
     72    int nBad = psMemCheckCorruption(0);
     73    if(nBad) {
     74        printf("ERROR: Found %d bad memory blocks\n", nBad);
     75    }
    7276    printFooter(stdout, "psArray","Free float array",true);
    7377
  • trunk/psLib/test/collections/tst_psArray_03.c

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6969    psDoubleArrayFree(psArr);
    7070    psMemCheckLeaks(0, NULL, stdout);
     71    int nBad = psMemCheckCorruption(0);
     72    if(nBad) {
     73        printf("ERROR: Found %d bad memory blocks\n", nBad);
     74    }
    7175    printFooter(stdout, "psArray","Free double array",true);
    7276
  • trunk/psLib/test/collections/tst_psArray_04.c

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6969    psComplexArrayFree(psArr);
    7070    psMemCheckLeaks(0, NULL, stdout);
     71    int nBad = psMemCheckCorruption(0);
     72    if(nBad) {
     73        printf("ERROR: Found %d bad memory blocks\n", nBad);
     74    }
    7175    printFooter(stdout, "psArray","Free complex array",true);
    7276
  • trunk/psLib/test/collections/tst_psArray_05.c

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    102102    }
    103103    psMemCheckLeaks(0, NULL, stdout);
     104    int nBad = psMemCheckCorruption(0);
     105    if(nBad) {
     106        printf("ERROR: Found %d bad memory blocks\n", nBad);
     107    }
    104108    printFooter(stdout, "psArray", "Free void pointer array", true);
    105109
  • trunk/psLib/test/collections/tst_psArray_06.c

    r576 r620  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-05-05 20:39:09 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-05-08 01:19:28 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    111111    }
    112112    psMemCheckLeaks(0, NULL, stdout);
     113    int nBad = psMemCheckCorruption(0);
     114    if(nBad) {
     115        printf("ERROR: Found %d bad memory blocks\n", nBad);
     116    }
    113117    printFooter(stdout, "psArray", "Free void pointer array with function callback", true);
    114118
  • trunk/psLib/test/collections/tst_psBitSet_01.c

    r576 r620  
    1111 *  @author  Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    14  *  @date  $Date: 2004-05-05 20:39:09 $
     13 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     14 *  @date  $Date: 2004-05-08 01:19:28 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5858    psBitSetFree(bs);
    5959    psMemCheckLeaks(0, NULL, stdout);
     60    psMemCheckCorruption(0);
     61    int nBad = psMemCheckCorruption(0);
     62    if(nBad) {
     63        printf("ERROR: Found %d bad memory blocks\n", nBad);
     64    }
    6065    printFooter(stdout, "psBitSet", "Free psBitSet", true);
    6166
  • trunk/psLib/test/collections/tst_psBitSet_02.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6767    psBitSetFree(outbs);
    6868    psMemCheckLeaks(0, NULL, stdout);
     69    int nBad = psMemCheckCorruption(0);
     70    if(nBad) {
     71        printf("ERROR: Found %d bad memory blocks\n", nBad);
     72    }
    6973    printFooter(stdout, "psBitSet", "Free psBitSets", true);
    7074
  • trunk/psLib/test/collections/tst_psBitSet_03.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6767    psBitSetFree(outbs);
    6868    psMemCheckLeaks(0, NULL, stdout);
     69    int nBad = psMemCheckCorruption(0);
     70    if(nBad) {
     71        printf("ERROR: Found %d bad memory blocks\n", nBad);
     72    }
    6973    printFooter(stdout, "psBitSet", "Free psBitSets", true);
    7074
  • trunk/psLib/test/collections/tst_psBitSet_04.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6767    psBitSetFree(outbs);
    6868    psMemCheckLeaks(0, NULL, stdout);
     69    int nBad = psMemCheckCorruption(0);
     70    if(nBad) {
     71        printf("ERROR: Found %d bad memory blocks\n", nBad);
     72    }
    6973    printFooter(stdout, "psBitSet", "Free psBitSets", true);
    7074
  • trunk/psLib/test/collections/tst_psBitSet_05.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5252    psBitSetFree(outbs);
    5353    psMemCheckLeaks(0, NULL, stdout);
     54    int nBad = psMemCheckCorruption(0);
     55    if(nBad) {
     56        printf("ERROR: Found %d bad memory blocks\n", nBad);
     57    }
    5458    printFooter(stdout, "psBitSet", "Free psBitSets", true);
    5559
  • trunk/psLib/test/collections/tst_psBitSet_06.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5353    psBitSetFree(outbs);
    5454    psMemCheckLeaks(0, NULL, stdout);
     55    int nBad = psMemCheckCorruption(0);
     56    if(nBad) {
     57        printf("ERROR: Found %d bad memory blocks\n", nBad);
     58    }
    5559    printFooter(stdout, "psBitSet", "Free psBitSetFree psBitSets", true);
    5660
  • trunk/psLib/test/collections/tst_psSort_01.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5858    psFloatArrayFree(out);
    5959    psMemCheckLeaks(0, NULL, stdout);
     60    int nBad = psMemCheckCorruption(0);
     61    if(nBad) {
     62        printf("ERROR: Found %d bad memory blocks\n", nBad);
     63    }
    6064    printFooter(stdout, "psSort", "Free float arrays", true);
    6165
  • trunk/psLib/test/collections/tst_psSort_02.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5858    psIntArrayFree(out);
    5959    psMemCheckLeaks(0, NULL, stdout);
     60    int nBad = psMemCheckCorruption(0);
     61    if(nBad) {
     62        printf("ERROR: Found %d bad memory blocks\n", nBad);
     63    }
    6064    printFooter(stdout, "psSort", "Free arrays", true);
    6165
  • trunk/psLib/test/collections/tst_psSort_03.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5252    psFloatArrayFree(out);
    5353    psMemCheckLeaks(0, NULL, stdout);
     54    int nBad = psMemCheckCorruption(0);
     55    if(nBad) {
     56        printf("ERROR: Found %d bad memory blocks\n", nBad);
     57    }
    5458    printFooter(stdout, "psSort", "Free float arrays", true);
    5559
  • trunk/psLib/test/collections/tst_psSort_04.c

    r576 r620  
    1010 *  @author  Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    13  *  @date  $Date: 2004-05-05 20:39:09 $
     12 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     13 *  @date  $Date: 2004-05-08 01:19:28 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4545    psFloatArrayFree(goodOut);
    4646    psMemCheckLeaks(0, NULL, stdout);
     47    int nBad = psMemCheckCorruption(0);
     48    if(nBad) {
     49        printf("ERROR: Found %d bad memory blocks\n", nBad);
     50    }
    4751    printFooter(stdout, "psSort", "Free arays", true);
     52
     53    return 0;
    4854}
Note: See TracChangeset for help on using the changeset viewer.