IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Add check for invalid image type for function psImageClipNaN and update
verified stderr file.

File:
1 edited

Legend:

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

    r1893 r1895  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-09-25 00:43:55 $
     8 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-09-25 01:13:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    318318    }
    319319
     320    // Verify program execution doesn't stop if the input image type is something
     321    // other than F32, F64, C32, C64.
     322    img = psImageAlloc(c,r,PS_TYPE_S32);
     323    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error (invalid type)");
     324    retVal = psImageClipNaN(img,2.0f);
     325    if (retVal != 0) {
     326        psError(__func__,"Expected zero return for clip of invalid image type.");
     327        return 4;
     328    }
     329    psFree(img);
     330
    320331    return 0;
    321332}
Note: See TracChangeset for help on using the changeset viewer.