Changeset 8020 for branches/jhoblitt/ippdb/tests/alloc.c
- Timestamp:
- Jul 31, 2006, 3:44:47 PM (20 years ago)
- File:
-
- 1 edited
-
branches/jhoblitt/ippdb/tests/alloc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/tests/alloc.c
r8006 r8020 384 384 pzPendingImfileRow *object; 385 385 386 object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string" , "a string");386 object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string" ); 387 387 388 388 if (!object) { … … 402 402 exit(EXIT_FAILURE); 403 403 } 404 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {405 psFree(object);406 exit(EXIT_FAILURE);407 }408 404 if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) { 409 405 psFree(object); … … 454 450 newImfileRow *object; 455 451 456 object = newImfileRowAlloc("a string", "a string", "a string", "a string" ); 457 458 if (!object) { 459 exit(EXIT_FAILURE); 460 } 461 462 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 463 psFree(object); 464 exit(EXIT_FAILURE); 465 } 466 if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) { 452 object = newImfileRowAlloc("a string", "a string", "a string" ); 453 454 if (!object) { 455 exit(EXIT_FAILURE); 456 } 457 458 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 467 459 psFree(object); 468 460 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
