Changeset 9745
- Timestamp:
- Oct 24, 2006, 6:58:39 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 edited
-
src/types/psLookupTable.c (modified) (2 diffs)
-
test/types/tap_psLookupTable_all.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psLookupTable.c
r9730 r9745 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-10-2 4 22:52:56$9 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-10-25 04:58:38 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 564 564 return NULL; 565 565 } 566 } 567 if (strValue != NULL && strNum == NULL) { 568 psError(PS_ERR_UNKNOWN, true, 569 "Parsing text file failed - missing table value(s)."); 570 fclose(fp); 571 psFree(outputArray); 572 psFree(line); 573 psFree(strValue); 574 return NULL; 566 575 } 567 576 } // ignore line -
trunk/psLib/test/types/tap_psLookupTable_all.c
r9714 r9745 24 24 int main(void) 25 25 { 26 plan_tests(2 7);26 plan_tests(28); 27 27 28 28 diag("Tests for psLookupTable Functions"); … … 149 149 "psVectorsReadFromFile: return NULL for empty table."); 150 150 } 151 // Attempt to read from file with partially constructed row 152 { 153 outVec = psVectorsReadFromFile("table3.dat", 154 "\%f \%d \%d \%ld \%d \%d \%d \%ld \%*d \%lf"); 155 ok( outVec == NULL, 156 "psVectorsReadFromFile: return NULL for table with partially" 157 " constructed row."); 158 } 151 159 //Attempt to read with valid inputs 152 160 {
Note:
See TracChangeset
for help on using the changeset viewer.
