Changeset 11140 for trunk/ippdb/tests
- Timestamp:
- Jan 18, 2007, 2:23:24 PM (20 years ago)
- Location:
- trunk/ippdb/tests
- Files:
-
- 5 edited
-
alloc.c (modified) (2 diffs)
-
insert.c (modified) (1 diff)
-
insertobject.c (modified) (1 diff)
-
metadatafromobject.c (modified) (2 diffs)
-
objectfrommetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11136 r11140 244 244 newExpRow *object; 245 245 246 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string",-32, "a string" );246 object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string" ); 247 247 248 248 if (!object) { … … 263 263 } 264 264 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 265 psFree(object);266 exit(EXIT_FAILURE);267 }268 psFree(object);269 exit(EXIT_FAILURE);270 }271 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {272 265 psFree(object); 273 266 exit(EXIT_FAILURE); -
trunk/ippdb/tests/insert.c
r11136 r11140 118 118 } 119 119 120 if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string",-32, "a string")) {120 if (!newExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string")) { 121 121 exit(EXIT_FAILURE); 122 122 } -
trunk/ippdb/tests/insertobject.c
r11136 r11140 168 168 } 169 169 170 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string",-32, "a string");170 object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string"); 171 171 if (!object) { 172 172 exit(EXIT_FAILURE); -
trunk/ippdb/tests/metadatafromobject.c
r11136 r11140 302 302 bool status; 303 303 304 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string",-32, "a string");304 object = newExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string"); 305 305 if (!object) { 306 306 exit(EXIT_FAILURE); … … 327 327 } 328 328 if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) { 329 psFree(md);330 exit(EXIT_FAILURE);331 }332 psFree(md);333 exit(EXIT_FAILURE);334 }335 if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) {336 329 psFree(md); 337 330 exit(EXIT_FAILURE); -
trunk/ippdb/tests/objectfrommetadata.c
r11136 r11140 439 439 exit(EXIT_FAILURE); 440 440 } 441 psFree(md);442 exit(EXIT_FAILURE);443 }444 if (!psMetadataAddStr(md, PS_LIST_TAIL, "exp_type", 0, NULL, "a string")) {445 psFree(md);446 exit(EXIT_FAILURE);447 }448 441 if (!psMetadataAddS32(md, PS_LIST_TAIL, "imfiles", 0, NULL, -32)) { 449 442 psFree(md); … … 476 469 } 477 470 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 478 psFree(object);479 exit(EXIT_FAILURE);480 }481 psFree(object);482 exit(EXIT_FAILURE);483 }484 if (strncmp(object->exp_type, "a string", MAX_STRING_LENGTH)) {485 471 psFree(object); 486 472 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
