IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4107


Ignore:
Timestamp:
Jun 3, 2005, 2:25:07 PM (21 years ago)
Author:
evanalst
Message:

Update test case for psFitsGetExtNum.

Location:
trunk/psLib/test/dataIO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataIO/tst_psFits.c

    r4104 r4107  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-06-03 23:27:20 $
     8*  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-06-04 00:25:06 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    380380    psFree(fits);
    381381
     382    // Attempt to get ext name from null fits file
     383    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for NULL fits file");
     384    if(psFitsGetExtName(NULL) != NULL) {
     385        psError(PS_ERR_UNKNOWN,true,"Expected NULL return from psFitsGetExtName with NULL fits file");
     386        return 10;
     387    }
     388
    382389    return 0;
    383390}
     
    582589
    583590    psFree(fits);
     591
     592    // Attempt to get ext name from null fits file
     593    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for NULL fits file");
     594    if(psFitsGetExtNum(NULL) != PS_FITS_TYPE_NONE) {
     595        psError(PS_ERR_UNKNOWN,true,"Expected NULL return from psFitsGetExtNum with NULL fits file");
     596        return 10;
     597    }
    584598
    585599    return 0;
  • trunk/psLib/test/dataIO/verified/tst_psFits.stderr

    r4104 r4107  
    3131<DATE><TIME>|<HOST>|E|psFitsMoveExtName (FILE:LINENO)
    3232    Specified extension name can not be NULL.
     33<DATE><TIME>|<HOST>|I|tst_psFitsMoveExtName
     34    Following should generate an error for NULL fits file
     35<DATE><TIME>|<HOST>|E|psFitsGetExtName (FILE:LINENO)
     36    The input psFits object can not NULL.
    3337
    3438---> TESTPOINT PASSED (psImage{psFitsMoveExtName} | tst_psFits.c)
     
    6771    Following should be an error.
    6872<DATE><TIME>|<HOST>|E|psFitsMoveExtNum (FILE:LINENO)
     73    The input psFits object can not NULL.
     74<DATE><TIME>|<HOST>|I|tst_psFitsMoveExtNum
     75    Following should generate an error for NULL fits file
     76<DATE><TIME>|<HOST>|E|psFitsGetExtNum (FILE:LINENO)
    6977    The input psFits object can not NULL.
    7078
Note: See TracChangeset for help on using the changeset viewer.