Changeset 2725 for trunk/psLib/test/astronomy/tst_psTime_04.c
- Timestamp:
- Dec 16, 2004, 8:53:35 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psTime_04.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psTime_04.c
r2392 r2725 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-1 1-22 20:52:45 $16 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-12-16 18:53:35 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 // Test A - Initialize time 30 30 printPositiveTestHeader(stdout, "psTime", "Test A - Initialize time"); 31 bool status = true; 32 status = psTimeInit("../../config/psTime.config"); 33 psTimeFinalize(); 31 psLibInit(true, "../../config/psTime.config"); 32 psLibFinalize(); 34 33 printFooter(stdout, "psTime", "Test A - Initialize time", true); 35 34 … … 38 37 printNegativeTestHeader(stdout,"psTime", "Test B - Attempt to open non-existant time config file", 39 38 "Failed to open file 'zzz'. Check if it exists and it has the proper permissions.", 0); 40 status = psTimeInit("zzz");39 psLibInit(true, "zzz"); 41 40 printFooter(stdout, "psTime", "Test B - Attempt to open non-existant time config file", true); 42 41 … … 45 44 printNegativeTestHeader(stdout,"psTime", "Test C - Attempt to open non-existant time data files", 46 45 "Failed to open file 'zzz'. Check if it exists and it has the proper permissions.", 0); 47 status = psTimeInit("./test.psTime.config1");48 ps TimeFinalize();46 psLibInit(true, "./test.psTime.config1"); 47 psLibFinalize(); 49 48 printFooter(stdout, "psTime", "Test C - Attempt to open non-existant time data files", true); 50 49 … … 53 52 printNegativeTestHeader(stdout,"psTime", "Test D - Attempt to read incorrect number of files", 54 53 "Incorrect number of table files entered. Found: 3. Expected: 4.", 0); 55 status = psTimeInit("./test.psTime.config2");56 ps TimeFinalize();54 psLibInit(true, "./test.psTime.config2"); 55 psLibFinalize(); 57 56 printFooter(stdout, "psTime", "Test D - Attempt to read incorrect number of files", true); 58 57 … … 61 60 printNegativeTestHeader(stdout,"psTime", "Test E - Attempt to read incorrect number of from values", 62 61 "Incorrect vector size. Size: 3, Expected 4.", 0); 63 status = psTimeInit("./test.psTime.config3");64 ps TimeFinalize();62 psLibInit(true, "./test.psTime.config3"); 63 psLibFinalize(); 65 64 printFooter(stdout, "psTime", "Test E - Attempt to read incorrect number of from values", true); 66 65 … … 69 68 printNegativeTestHeader(stdout,"psTime", "Test F - Attempt to read data file with typo in number", 70 69 "Unable to parse string, number on line 16.", 0); 71 status = psTimeInit("./test.psTime.config4");72 ps TimeFinalize();70 psLibInit(true, "./test.psTime.config4"); 71 psLibFinalize(); 73 72 printFooter(stdout, "psTime", "Test F - Attempt to read data file with typo in number", true); 74 73 … … 76 75 // Test G - Free data 77 76 printPositiveTestHeader(stdout, "psTime", "Test G - Free data"); 78 ps TimeFinalize();77 psLibFinalize(); 79 78 if( psMemCheckLeaks(0, NULL, stdout,false) != 0 ) { 80 79 psError(PS_ERR_UNKNOWN,true,"Memory leak detected.");
Note:
See TracChangeset
for help on using the changeset viewer.
