Changeset 2331
- Timestamp:
- Nov 10, 2004, 1:40:04 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psTime_04.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psTime_04.c
r2305 r2331 6 6 * 7 7 * 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 11 10 * Test D - Free data 12 11 * 13 12 * @author Ross Harman, MHPCC 14 13 * 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 $ 17 16 * 18 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 30 bool status = true; 32 31 status = psTimeInit("../../config/psTime.config"); 32 printFooter(stdout, "psTime", "Test A - Initialize time", true); 33 33 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 35 47 36 48 // Test D - Free data … … 46 58 return 0; 47 59 } 60
Note:
See TracChangeset
for help on using the changeset viewer.
