IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3311


Ignore:
Timestamp:
Feb 23, 2005, 11:36:57 AM (21 years ago)
Author:
desonia
Message:

updated tests in response to source changes.

Location:
trunk/psLib/test/image
Files:
1 added
5 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/Makefile.am

    r3275 r3311  
    1919        tst_psImageFFT \
    2020        tst_psImageManip \
    21         tst_psImageStats00 \
    22         tst_psImageStats01 \
    23         tst_psImageStats02 \
    24         tst_psImageStats03 \
    25         tst_psImageStats04 \
     21        tst_psImageStats \
    2622        tst_psImageExtraction \
    2723        tst_psImageConvolve \
     
    4440tst_psImageFFT_SOURCES =  tst_psImageFFT.c
    4541tst_psImageManip_SOURCES =  tst_psImageManip.c
    46 tst_psImageStats00_SOURCES =  tst_psImageStats00.c
    47 tst_psImageStats01_SOURCES =  tst_psImageStats01.c
    48 tst_psImageStats02_SOURCES =  tst_psImageStats02.c
    49 tst_psImageStats03_SOURCES =  tst_psImageStats03.c
    50 tst_psImageStats04_SOURCES =  tst_psImageStats04.c
     42tst_psImageStats_SOURCES =  tst_psImageStats.c
    5143tst_psImageExtraction_SOURCES =  tst_psImageExtraction.c
    5244tst_psImageConvolve_SOURCES =  tst_psImageConvolve.c
  • trunk/psLib/test/image/tst_psImageExtraction.c

    r3264 r3311  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-02-17 19:26:25 $
     8*  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-02-23 21:36:57 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    334334    }
    335335
    336     /* Verify the input image is an invalid type */
    337     psLogMsg( __func__, PS_LOG_INFO, "Following should be an error invalid image type.");
    338     psImage* imgU8 = psImageAlloc( c, r, PS_TYPE_U8 );
    339     out = psImageSlice( out, NULL,
    340                         imgU8,
    341                         mask, 1,
    342                         c/10, r/10,
    343                         c/10+1, r/10+1,
    344                         PS_CUT_X_POS,
    345                         stat);
    346     if ( out != NULL ) {
    347         psError( PS_ERR_UNKNOWN,true, "Input image with invalid type didn't return NULL as expected.");
    348         return 112;
    349     }
    350 
    351336    psFree( image );
    352337    psFree( positions );
     
    354339    psFree( out );
    355340    psFree( stat );
    356     psFree( imgU8 );
    357341    psFree( maskS8 );
    358342    psFree( maskSz );
  • trunk/psLib/test/image/verified/tst_psImageExtraction.stderr

    r3127 r3311  
    175175<DATE><TIME>|<HOST>|E|psImageSlice (FILE:LINENO)
    176176    Input psImage mask type, psS8, is not the supported mask datatype of psU8.
    177 <DATE><TIME>|<HOST>|I|testImageSlice
    178     Following should be an error invalid image type.
    179 <DATE><TIME>|<HOST>|E|psImageSlice (FILE:LINENO)
    180     Specified psImage type, psU8, is not supported.
    181177
    182178---> TESTPOINT PASSED (psImage{psImageSlice} | tst_psImageExtraction.c)
Note: See TracChangeset for help on using the changeset viewer.