IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2007, 5:14:01 PM (19 years ago)
Author:
gusciora
Message:

Removed bug with psVector->n++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/imageops/tap_psImagePixelExtract.c

    r11690 r12257  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2007-02-08 01:26:20 $
     8*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2007-03-06 03:14:01 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121    psLogSetFormat("HLNM");
    2222    psLogSetLevel(PS_LOG_INFO);
    23     plan_tests(244);
     23    plan_tests(248);
    2424
    2525    // testImageSlice()
     
    396396        psVector* cols = psVectorAlloc(length,PS_TYPE_F32);
    397397   
    398         psVector* result = NULL;
     398        psVector* result = psVectorAlloc(length,PS_TYPE_F32);
    399399        for (psS32 n = 0; n < numPoints; n++) {
    400400            psVector* orig = result;
     
    468468        }
    469469
    470    
    471470        // Following should be an error (NULL image)
    472471        // XXX: Verify error
     
    534533        for (psS32 i=0; i < 10; i++) {
    535534            radii->data.F32[i] = 10+i*10;
    536             radii->n++;
    537535        }
    538536   
    539537        bool errorFlag = false;   
    540         psVector* result = NULL;
    541         ok(false, "Skipping psImageRadialCut() test because of bugs");
    542         if (0) {
     538        psVector* result = psVectorAlloc(10,PS_TYPE_F32);
     539        if (1) {
    543540            result = psImageRadialCut(result,image,mask,1,centerX,centerY,radii,stat);
    544541            ok(result != NULL, "psImageRadialCut returned non-NULL");
     
    553550            ok(!errorFlag, "psImageRadialCut() produced the correct data values");
    554551        }   
    555 
    556552        // again, but without mask
    557553        psVector* orig = result;
    558         ok(false, "Skipping psImageRadialCut() test because of bugs");
    559         if (0) {
     554        if (1) {
    560555            result = psImageRadialCut(result,image,NULL,1,centerX,centerY,radii,stat);
    561556            ok(result != NULL, "psImageRadialCut returned non-NULL");
     
    12471242        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    12481243    }
    1249 /* HERE
    1250 */
    12511244}
Note: See TracChangeset for help on using the changeset viewer.