IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Update test case for psFitsGetExtNum.

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.