IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2331


Ignore:
Timestamp:
Nov 10, 2004, 1:40:04 PM (22 years ago)
Author:
harman
Message:

Added initial psTime config file test

File:
1 edited

Legend:

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

    r2305 r2331  
    66 *
    77 *  This test driver contains the following tests for psTime:
    8  *     Test A - Add two times
    9  *     Test B - Subtact two times
    10  *     Test C - Delta two times
     8 *     Test A - Initialize time
     9 *     Test B - Attempt top open non-existant time config file
    1110 *     Test D - Free data
    1211 *
    1312 *  @author  Ross Harman, MHPCC
    1413 *
    15  *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    16  *  @date  $Date: 2004-11-09 00:43:03 $
     14 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-11-10 23:40:04 $
    1716 *
    1817 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3130    bool status = true;
    3231    status = psTimeInit("../../config/psTime.config");
     32    printFooter(stdout, "psTime", "Test A - Initialize time", true);
    3333
    34     printFooter(stdout, "psTime", "Test A - Initialize time", true);
     34
     35    // Test B - Attempt top open non-existant time config file
     36    printNegativeTestHeader(stdout,"psTime", "Test B - Attempt top open non-existant time config file",
     37                            "Failed to open file 'zzz'.  Check if it exists and it has the proper permissions.", 0);
     38    status = psTimeInit("zzz");
     39    printFooter(stdout, "psTime", "Test B - Attempt top open non-existant time config file", true);
     40
     41    // Test C - Attempt top open non-existant time data file
     42    printNegativeTestHeader(stdout,"psTime", "Test B - Attempt top open non-existant time config file",
     43                            "Failed to open file 'zzz'.  Check if it exists and it has the proper permissions.", 0);
     44    status = psTimeInit("./test.psTime.config");
     45    printFooter(stdout, "psTime", "Test B - Attempt top open non-existant time config file", true);
     46
    3547
    3648    // Test D - Free data
     
    4658    return 0;
    4759}
     60
Note: See TracChangeset for help on using the changeset viewer.