IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 12, 2005, 3:35:31 PM (22 years ago)
Author:
evanalst
Message:

Add addition test case for psTimeAlloc function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psTime_03.c

    r2808 r2964  
    1414 *   Test G - Add two times across leapsecond boundary
    1515 *   Test H - Find number of leapseconds added between two times
     16 *   Test H1 - Verify error message to invalid time type in psTimeAlloc
    1617 *   Test G - Free data
    1718 *
    1819 *  @author  Ross Harman, MHPCC
    1920 *
    20  *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
    21  *  @date  $Date: 2004-12-23 19:38:38 $
     21 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
     22 *  @date  $Date: 2005-01-13 01:35:30 $
    2223 *
    2324 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    155156    printFooter(stdout, "psTime", "Test H - Find number of leapseconds added between two times", true);
    156157
     158    // Test H1 - Error in allocating time not UTC or TAI
     159    printPositiveTestHeader(stdout,"psTime","Test H1 - Verify error message in allocating invalid time type");
     160    psLogMsg(__func__,PS_LOG_INFO,"Invalid time type during allocation should generate error message");
     161    psTime *time10 = psTimeAlloc(10);
     162    if(time10 != NULL) {
     163        printf("ERROR: returned time should be NULL\n");
     164    }
     165    printFooter(stdout,"psTime","Test H1 - Verify error message in allocating invalid time type",true);
    157166
    158167    // Test G - Free data
Note: See TracChangeset for help on using the changeset viewer.