Changeset 9187 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Oct 3, 2006, 6:32:18 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9173 r9187 496 496 rawDetrendExpRow *object; 497 497 498 object = rawDetrendExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64 );498 object = rawDetrendExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" ); 499 499 500 500 if (!object) { … … 570 570 exit(EXIT_FAILURE); 571 571 } 572 if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) { 573 psFree(object); 574 exit(EXIT_FAILURE); 575 } 572 576 573 577 psFree(object); … … 577 581 rawScienceExpRow *object; 578 582 579 object = rawScienceExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64 );583 object = rawScienceExpRowAlloc("a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" ); 580 584 581 585 if (!object) { … … 651 655 exit(EXIT_FAILURE); 652 656 } 657 if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) { 658 psFree(object); 659 exit(EXIT_FAILURE); 660 } 653 661 654 662 psFree(object); … … 658 666 rawImfileRow *object; 659 667 660 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64 );668 object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" ); 661 669 662 670 if (!object) { … … 729 737 } 730 738 if (!object->posang == 64.64) { 739 psFree(object); 740 exit(EXIT_FAILURE); 741 } 742 if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) { 731 743 psFree(object); 732 744 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
