IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2007, 5:57:25 PM (19 years ago)
Author:
jhoblitt
Message:

disable unnecessary diag() calls

Location:
trunk/psLib/test/mathtypes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/mathtypes/tap_psImage.c

    r12431 r12513  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-03-14 00:39:51 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-03-20 03:57:25 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6868void testImageAlloc()
    6969{
    70     diag("testImageAlloc");
     70//    diag("testImageAlloc");
    7171
    7272    psImage* image = NULL;
     
    152152                        for (psS32 c=0;c<cols;c++) {
    153153                            if (image->data.U16[r][c] != 2*c+r) {
    154                                 diag("ERROR: Could not set all pixels in uint16 image at (%d,%d)",c,r);
     154//                                diag("ERROR: Could not set all pixels in uint16 image at (%d,%d)",c,r);
    155155                                errorFlag = true;
    156156                            }
     
    173173                        for (psS32 c=0;c<cols;c++) {
    174174                            if (fabsf(image->data.F32[r][c] - (2.0f*c+r)) > FLT_EPSILON) {
    175                                 diag("Could not set all pixels in float image at (%d,%d)",c,r);
     175//                                diag("Could not set all pixels in float image at (%d,%d)",c,r);
    176176                                errorFlag = true;
    177177                            }
     
    194194                        for (psS32 c=0;c<cols;c++) {
    195195                            if (fabs(image->data.F64[r][c] - (2.0f*c+r)) > DBL_EPSILON) {
    196                                 diag("Set all pixels in double image at (%d,%d)",c,r);
     196//                                diag("Set all pixels in double image at (%d,%d)",c,r);
    197197                                errorFlag = true;
    198198                            }
     
    216216                        for (psS32 c=0;c<cols;c++) {
    217217                            if (image->data.U8[r][c] != (uint8_t)(r + c)) {
    218                                 diag("Set all pixels in image (type=%d) at (%d,%d)",
    219                                      type[t],c,r);
     218//                                diag("Set all pixels in image (type=%d) at (%d,%d)", type[t],c,r);
    220219                                errorFlag = true;
    221220                            }
     
    250249    // Testpoint #790
    251250
    252     diag("testRegion");
     251//    diag("testRegion");
    253252
    254253    psRegion region = psRegionSet(1,2,3,4);
     
    271270void testRegion2()
    272271{
    273     diag("testRegion2");
     272//    diag("testRegion2");
    274273
    275274    psImage *in;
     
    297296void testRegion3()
    298297{
    299     diag("testRegion3");
     298//    diag("testRegion3");
    300299
    301300    float X = 1;
     
    312311void testImageInit()
    313312{
    314     diag("testImageInit");
     313//    diag("testImageInit");
    315314
    316315    psImage *in1 = NULL;
     
    346345void testImageSet()
    347346{
    348     diag("testImageSet");
     347//    diag("testImageSet");
    349348
    350349    psImage *image = NULL;
     
    462461void testImageGet()
    463462{
    464     diag("testImageGet");
     463//    diag("testImageGet");
    465464
    466465    psImage *image = NULL;
  • trunk/psLib/test/mathtypes/tap_psImageInterpolate.c

    r9875 r12513  
    1010    plan_tests(47);
    1111
    12     diag("psImageInterpolate() tests");
     12//    diag("psImageInterpolate() tests");
    1313
    1414    // very simple tests: no mask, bilinear mode, xramp image only
     
    1616        psMemId id = psMemGetId();
    1717
    18         diag ("interpolate a delta function");
     18//        diag ("interpolate a delta function");
    1919
    2020        // generate simple image (x ramp)
     
    3131        ok_float (value, 1.0, "pixel center value - %f", value);
    3232
    33         diag ("why do I need to have tolerances of 4epsilon or so??");
     33//        diag ("why do I need to have tolerances of 4epsilon or so??");
    3434        value = psImagePixelInterpolate (image, 10.9, 10.5, NULL, 0, 0.0, PS_INTERPOLATE_BILINEAR);
    3535        ok_float_tol (value, 0.6, 4.0*FLT_EPSILON, "pixel value - %.20f", value);
     
    5151        psMemId id = psMemGetId();
    5252
    53         diag ("interpolate an x-ramp");
     53//        diag ("interpolate an x-ramp");
    5454
    5555        // generate simple image (x ramp)
     
    103103        psMemId id = psMemGetId();
    104104
    105         diag ("interpolate a y-ramp: ");
     105//        diag ("interpolate a y-ramp: ");
    106106
    107107        // generate simple image (y ramp)
     
    145145        psMemId id = psMemGetId();
    146146
    147         diag ("interpolate an x-ramp (bicube)");
     147//        diag ("interpolate an x-ramp (bicube)");
    148148
    149149        // generate simple image (x ramp)
     
    177177        ok_float (value, 2.8, "coord: 2.8, 2.8, value: %f", value);
    178178
    179         diag ("coords outside of nominal range (1 < x < Nx - 2) return 'uncover'");
     179//        diag ("coords outside of nominal range (1 < x < Nx - 2) return 'uncover'");
    180180
    181181        // no extrapolation: these return the 'uncover' value
     
    199199        psMemId id = psMemGetId();
    200200
    201         diag ("interpolate a y-ramp (bicube)");
     201//        diag ("interpolate a y-ramp (bicube)");
    202202
    203203        // generate simple image (y ramp)
     
    241241        psMemId id = psMemGetId();
    242242
    243         diag ("interpolate a quadratic shape (bicube)");
     243//        diag ("interpolate a quadratic shape (bicube)");
    244244
    245245        // generate simple image (x ramp)
  • trunk/psLib/test/mathtypes/tap_psScalar.c

    r12440 r12513  
    55 *  @author Eric Van Alst, MHPCC
    66 *
    7  *  @version $Revision: 1.3 $
     7 *  @version $Revision: 1.4 $
    88 *           $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-03-14 21:21:49 $
     9 *  @date $Date: 2007-03-20 03:57:25 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6464void testScalarAlloc(void)
    6565{
    66     diag("psTestScalarAlloc");
     66//    diag("psTestScalarAlloc");
    6767
    6868    //Verify the proper allocation/deallocation of scalar objects of valid types
     
    8282void testBadScalarAlloc(void)
    8383{
    84     diag("psTestBadScalarAlloc");
     84//    diag("psTestBadScalarAlloc");
    8585
    8686    // Verify return is null for invalid scalar type
     
    9292void testScalarCopy(void)
    9393{
    94     diag("psTestScalarCopy");
     94//    diag("psTestScalarCopy");
    9595
    9696    // Verify the proper copying of scalar objects for all valid types
     
    110110void testBadScalarCopy(void)
    111111{
    112     diag("psTestBadScalarCopy");
     112//    diag("psTestBadScalarCopy");
    113113
    114114    // Verify the return is null for invalid scalar type in the original
  • trunk/psLib/test/mathtypes/tap_psVector.c

    r12440 r12513  
    1010    plan_tests(209);
    1111
    12     diag("psVectorAlloc() tests");
     12//    diag("psVectorAlloc() tests");
    1313
    1414    {
     
    5555
    5656
    57     diag("psVectorRealloc() tests");
     57//    diag("psVectorRealloc() tests");
    5858
    5959    {
     
    153153    }
    154154
    155     diag("psVectorExtend() tests");
     155//    diag("psVectorExtend() tests");
    156156    {
    157157        // create new psVector
     
    217217
    218218
    219     diag("psVectorInit() tests");
     219//    diag("psVectorInit() tests");
    220220
    221221    {
     
    281281
    282282
    283     diag("psVectorCreate() tests");
     283//    diag("psVectorCreate() tests");
    284284
    285285    {
     
    399399
    400400
    401     diag("psVectorToString() tests");
     401//    diag("psVectorToString() tests");
    402402
    403403    #define TEST_VECTOR_TO_STRING(TYPE, SIZE, START, INC, EXPECTED)         \
     
    439439
    440440
    441     diag("p_psVectorGetElementF64() tests");
     441//    diag("p_psVectorGetElementF64() tests");
    442442
    443443    #define TEST_VECTOR_GET_ELEMENT_F64(ELEM_TYPE, SIZE, VALUE_TYPE,        \
     
    477477
    478478
    479     diag("p_psVectorPrint() tests");
     479//    diag("p_psVectorPrint() tests");
    480480    // XXX: Why are we testing private functions?
    481481    #define TEST_VECTOR_PRINT(ELEM_TYPE, SIZE, VALUE_TYPE, INIT_VALUE, FD,  \
     
    513513    TEST_VECTOR_PRINT(PS_TYPE_F64,2, psF64, -123.123, 1, "PS_TYPE_F64", TRUE);
    514514
    515     diag("psVectorSet() tests");
     515//    diag("psVectorSet() tests");
    516516
    517517    {
     
    543543
    544544
    545     diag("psVectorGet() tests");
     545//    diag("psVectorGet() tests");
    546546
    547547    {
     
    566566
    567567
    568     diag("psVectorCountPixelMask() tests");
     568//    diag("psVectorCountPixelMask() tests");
    569569
    570570    {
     
    605605
    606606
    607     diag("psVectorLength() tests");
     607//    diag("psVectorLength() tests");
    608608    {
    609609        psVector *vector = psVectorAlloc(5, PS_TYPE_F32);
     
    647647
    648648
    649     diag("psVectorCopy() tests");
     649//    diag("psVectorCopy() tests");
    650650
    651651    {
  • trunk/psLib/test/mathtypes/tap_psVectorSort_01.c

    r11265 r12513  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2007-01-24 22:14:48 $
     14 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2007-03-20 03:57:25 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626
    2727#define tstVectorSortByType(datatype,value)   \
    28 diag( "tstVectorSortByType_" #datatype ); \
    2928in = psVectorAlloc(7,PS_TYPE_##datatype); \
    3029in->n = 7;  \
  • trunk/psLib/test/mathtypes/tap_psVectorSort_02.c

    r11265 r12513  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2007-01-24 22:14:48 $
     16 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2007-03-20 03:57:25 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727
    2828#define tstVectorSortIndexByType(datatype,value) \
    29 diag( "tstVectorSortIndexByType_" #datatype ); \
    3029in = psVectorAlloc( 5, PS_TYPE_##datatype ); \
    3130in->n = 5; \
Note: See TracChangeset for help on using the changeset viewer.