Changeset 12193
- Timestamp:
- Mar 2, 2007, 3:09:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psEarthOrientation_motion.c
r11689 r12193 89 89 } 90 90 //Return NULL for failed eoc init - missing file 91 // printf("\n filename = '%s' \n", p_psGetConfigFileName()); 91 //printf("\n filename = '%s' \n", p_psGetConfigFileName()); 92 //XXX: Use the PS_CONFIG_FILE_DEFAULT macro, or PS_CONFIG_FILE environment variable 93 //to define where the real pslib config is. 92 94 { 93 95 testTime->sec = 1049160600; 94 96 testTime->nsec = 0; 95 97 testTime->leapsecond = false; 96 skip_start(rename("../../etc/pslib .config", "../../etc/pslib_config.bak"),98 skip_start(rename("../../etc/pslib/pslib.config", "../../etc/pslib/pslib_config.bak"), 97 99 1, "Skipping 1 tests because file rename failed!"); 98 100 ep = psEOC_PrecessionModel(testTime); 99 101 ok( ep == NULL, 100 102 "psEOC_PrecessionModel: return NULL for failed eoc init."); 101 rename("../../etc/pslib_config.bak", "../../etc/pslib.config"); 102 skip_end(); 103 } 103 rename("../../etc/pslib/pslib_config.bak", "../../etc/pslib/pslib.config"); 104 skip_end(); 105 } 106 104 107 //Return valid EarthPole for valid time input 105 108 { … … 174 177 } 175 178 //Return NULL for failed eoc init - missing file 179 //XXX: Use the PS_CONFIG_FILE_DEFAULT macro, or PS_CONFIG_FILE environment variable 180 //to define where the real pslib config is. 176 181 { 177 182 p_psEOCFinalize(); 178 skip_start(rename("../../etc/pslib .config", "../../etc/pslib_config.bak"),183 skip_start(rename("../../etc/pslib/pslib.config", "../../etc/pslib/pslib_config.bak"), 179 184 1, "Skipping 1 tests because file rename failed!"); 180 185 polarMotion = psEOC_GetPolarMotion(in, PS_IERS_B); 181 186 ok( polarMotion == NULL, 182 187 "psEOC_GetPolarMotion: return NULL for failed eoc init."); 183 rename("../../etc/pslib _config.bak", "../../etc/pslib.config");188 rename("../../etc/pslib/pslib_config.bak", "../../etc/pslib/pslib.config"); 184 189 skip_end(); 185 190 }
Note:
See TracChangeset
for help on using the changeset viewer.
