IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2004, 2:01:08 PM (22 years ago)
Author:
evanalst
Message:

Add addition test case.

File:
1 edited

Legend:

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

    r2273 r2754  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-04 01:05:00 $
     8 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-12-18 00:01:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    18171817    psFree(err);
    18181818
     1819    // Verify that that an invalid image type is handled properly
     1820    psErrorClear();
     1821    psImage* invImage = psImageAlloc(cols,rows,PS_TYPE_PTR);
     1822    result = psImageResample(result,invImage,2,PS_INTERPOLATE_FLAT);
     1823    if (result != NULL) {
     1824        psLogMsg(__func__,PS_LOG_ERROR,"return was not NULL, as expected.");
     1825        return 20;
     1826    }
     1827    err = psErrorLast();
     1828    if (err->code != PS_ERR_BAD_PARAMETER_TYPE) {
     1829        psLogMsg(__func__,PS_LOG_ERROR,"error message was not appropriate type.");
     1830        return 21;
     1831    }
     1832    psFree(err);
     1833
    18191834    psFree(image);
    18201835    psFree(result);
     1836    psFree(invImage);
    18211837
    18221838    return 0;
Note: See TracChangeset for help on using the changeset viewer.