IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2005, 1:27:20 PM (21 years ago)
Author:
evanalst
Message:

Update psFitsAlloc test case.

File:
1 edited

Legend:

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

    r3682 r4104  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-04-07 20:27:42 $
     8*  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-06-03 23:27:20 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    251251    }
    252252
     253    // Attempt to allocate with NULL filename
     254    psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message");
     255    fitsFile = psFitsAlloc(NULL);
     256    if(fitsFile != NULL) {
     257        psError(PS_ERR_UNKNOWN,true,"psFitsAlloc did not return NULL for NULL input");
     258        return 5;
     259    }
    253260
    254261    return 0;
Note: See TracChangeset for help on using the changeset viewer.