IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1895


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.

Location:
trunk/psLib/test/image
Files:
2 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}
  • trunk/psLib/test/image/verified/tst_psImageManip.stderr

    r1893 r1895  
    4242<DATE><TIME>|<HOST>|I|testImageClipNAN
    4343    psImageClipNaN shall modified pixel values of NaN with a specified value
     44<DATE><TIME>|<HOST>|I|testImageClipNAN
     45    Following should be an error (invalid type)
     46<DATE><TIME>|<HOST>|E|psLib.image.psImageClipNaN
     47    Specified psImage type (psS32) is not supported.
    4448
    4549---> TESTPOINT PASSED (psImage{psImageClipNAN} | tst_psImageManip.c)
Note: See TracChangeset for help on using the changeset viewer.