IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2964


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

Add addition test case for psTimeAlloc function.

Location:
trunk/psLib/test/astronomy
Files:
1 added
2 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
  • trunk/psLib/test/astronomy/verified/tst_psTime_03.stdout

    r2750 r2964  
    7575/***************************** TESTPOINT ******************************************\
    7676*             TestFile: tst_psTime_03.c                                            *
     77*            TestPoint: psTime{Test H1 - Verify error message in allocating invalid time type} *
     78*             TestType: Positive                                                   *
     79\**********************************************************************************/
     80
     81
     82---> TESTPOINT PASSED (psTime{Test H1 - Verify error message in allocating invalid time type} | tst_psTime_03.c)
     83
     84/***************************** TESTPOINT ******************************************\
     85*             TestFile: tst_psTime_03.c                                            *
    7786*            TestPoint: psTime{Test I - Free data}                                 *
    7887*             TestType: Positive                                                   *
Note: See TracChangeset for help on using the changeset viewer.