IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1896


Ignore:
Timestamp:
Sep 24, 2004, 3:38:24 PM (22 years ago)
Author:
evanalst
Message:

Add check for invalid type for function psImageClipComplexRegion and updated
verified stderr file.

Location:
trunk/psLib/test/image
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageManip.c

    r1895 r1896  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-09-25 01:13:14 $
     8 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-09-25 01:38:24 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    582582    testImageClipComplexByType(C32,10.0+I*10.0,(double)FLT_MAX*2.0+I*(double)FLT_MAX*2.0);
    583583
     584    // Verify program execution doesn't stop if the input image type is something
     585    // other than C32, C64.
     586    img = psImageAlloc(c,r,PS_TYPE_S32);
     587    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error (invalid type)");
     588    retVal = psImageClipComplexRegion(img,2.0,10.0,5.0,0.0);
     589    if (retVal != 0) {
     590        psError(__func__,"Expected zero return for clip of invalid image type.");
     591        return 84;
     592    }
     593    psFree(img);
     594
    584595    return 0;
    585596}
  • trunk/psLib/test/image/verified/tst_psImageManip.stderr

    r1895 r1896  
    109109<DATE><TIME>|<HOST>|E|psLib.image.psImageClipComplexRegion
    110110    Specified vmax value, 0+6.80565e+38i, is not the the range of input psImage's valid pixel values (psC32), i.e. [-3.40282e+38:<LINENO>.40282e+38]. 
     111<DATE><TIME>|<HOST>|I|testImageClipComplexRegion
     112    Following should be an error (invalid type)
     113<DATE><TIME>|<HOST>|E|psLib.image.psImageClipComplexRegion
     114    Specified psImage type (psS32) is not supported.
    111115
    112116---> TESTPOINT PASSED (psImage{psImageClipComplexRegion} | tst_psImageManip.c)
Note: See TracChangeset for help on using the changeset viewer.