- Timestamp:
- Feb 17, 2007 12:13:11 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/file.c
r65 r957 29 29 'W', 'o', 'r', 'l', 'd' }; 30 30 31 int file_test(void)31 static int file_test_internal(void) 32 32 { 33 33 enum { FILE_MAX_AGE = 1000 }; … … 90 90 return -70; 91 91 92 #if INCLUDE_FILE_TIME_TEST 92 93 /* Check file creation time >= start_time. */ 93 94 if (!PJ_TIME_VAL_GTE(stat.ctime, start_time)) 94 #if INCLUDE_FILE_TIME_TEST95 95 return -80; 96 96 /* Check file creation time is not much later. */ … … 207 207 } 208 208 209 210 int file_test(void) 211 { 212 int rc = file_test_internal(); 213 214 /* Delete test file if exists. */ 215 if (pj_file_exists(FILENAME)) 216 pj_file_delete(FILENAME); 217 218 return rc; 219 } 220 209 221 #else 210 222 int dummy_file_test;
Note: See TracChangeset
for help on using the changeset viewer.