IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.