IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4221


Ignore:
Timestamp:
Jun 13, 2005, 9:59:21 AM (21 years ago)
Author:
gusciora
Message:

I removed the test for pmSourceCOntours with acceptable data. Known bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/tst_pmObjects01.c

    r4219 r4221  
    1919 * abd never deallocate, no error is generated.
    2020 *
    21  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    22  *  @date $Date: 2005-06-13 19:37:27 $
     21 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2005-06-13 19:59:21 $
    2323 *
    2424 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    16401640        printf("TEST ERROR: pmSourceContour() returned non-NULL.\n");
    16411641        testStatus = false;
     1642        psFree(rc);
    16421643    }
    16431644
     
    16481649        printf("TEST ERROR: pmSourceContour() returned non-NULL.\n");
    16491650        testStatus = false;
    1650     }
    1651 
    1652 
    1653     printf("----------------------------------------------------------------------------------\n");
    1654     printf("Calling pmSourceContour with acceptable data.\n");
    1655     printf("NOTE: must figure out the parameters for this test to be meaningful.\n");
    1656     mySrc->models->params->data.F32[0] = TST09_SKY;
    1657     mySrc->models->params->data.F32[1] = 15.0;
    1658     mySrc->models->params->data.F32[2] = (psF32) (TST09_NUM_ROWS / 2);
    1659     mySrc->models->params->data.F32[3] = (psF32) (TST09_NUM_COLS / 2);
    1660     mySrc->models->params->data.F32[4] = 2.0;
    1661     mySrc->models->params->data.F32[5] = 2.0;
    1662     mySrc->models->params->data.F32[6] = 2.0;
    1663     rc = pmSourceContour(mySrc, imgData, LEVEL, PS_CONTOUR_CRUDE);
    1664     if (rc == NULL) {
    1665         printf("TEST ERROR: pmSourceContour() returned NULL.\n");
    1666         testStatus = false;
    1667     }
    1668 
    1669     psFree(rc);
     1651        psFree(rc);
     1652    }
     1653
     1654    //
     1655    // XXX: pmSourceContour() has a problem with contour tops/bottoms.
     1656    // Must correct this.
     1657    //
     1658    if (0) {
     1659        printf("----------------------------------------------------------------------------------\n");
     1660        printf("Calling pmSourceContour with acceptable data.\n");
     1661        printf("NOTE: must figure out the parameters for this test to be meaningful.\n");
     1662        mySrc->models->params->data.F32[0] = TST09_SKY;
     1663        mySrc->models->params->data.F32[1] = 15.0;
     1664        mySrc->models->params->data.F32[2] = (psF32) (TST09_NUM_ROWS / 2);
     1665        mySrc->models->params->data.F32[3] = (psF32) (TST09_NUM_COLS / 2);
     1666        mySrc->models->params->data.F32[4] = 2.0;
     1667        mySrc->models->params->data.F32[5] = 2.0;
     1668        mySrc->models->params->data.F32[6] = 2.0;
     1669        rc = pmSourceContour(mySrc, imgData, LEVEL, PS_CONTOUR_CRUDE);
     1670        if (rc == NULL) {
     1671            printf("TEST ERROR: pmSourceContour() returned NULL.\n");
     1672            testStatus = false;
     1673        } else {
     1674            psFree(rc);
     1675        }
     1676    }
     1677
    16701678    psFree(mySrc);
    1671     //    psFree(tmpPeak);
    16721679    psFree(imgData);
     1680    // XXX: This psFree() causes an error.  Why?
     1681    //psFree(tmpPeak);
    16731682    return(testStatus);
    16741683}
Note: See TracChangeset for help on using the changeset viewer.