Changeset 11820 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Feb 14, 2007, 5:58:26 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r11809 r11820 311 311 rawExpRow *object; 312 312 313 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "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", -16 );313 object = rawExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "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", 32.32, -16 ); 314 314 315 315 if (!object) { … … 400 400 exit(EXIT_FAILURE); 401 401 } 402 if (!object->solang == 32.32) { 403 psFree(object); 404 exit(EXIT_FAILURE); 405 } 402 406 if (!object->fault == -16) { 403 407 psFree(object); … … 832 836 detRunRow *object; 833 837 834 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z" );838 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", 32.32, 32.32, "a string", -32 ); 835 839 836 840 if (!object) { … … 925 929 exit(EXIT_FAILURE); 926 930 } 931 if (!object->solang_min == 32.32) { 932 psFree(object); 933 exit(EXIT_FAILURE); 934 } 935 if (!object->solang_max == 32.32) { 936 psFree(object); 937 exit(EXIT_FAILURE); 938 } 939 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 940 psFree(object); 941 exit(EXIT_FAILURE); 942 } 943 if (!object->parent == -32) { 944 psFree(object); 945 exit(EXIT_FAILURE); 946 } 927 947 928 948 psFree(object); … … 1581 1601 p5InputScfileRow *object; 1582 1602 1583 object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", -32, "a string",true );1603 object = p5InputScfileRowAlloc(-32, -32, "a string", "a string", "a string", true ); 1584 1604 1585 1605 if (!object) { … … 1603 1623 exit(EXIT_FAILURE); 1604 1624 } 1605 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {1606 psFree(object);1607 exit(EXIT_FAILURE);1608 }1609 if (!object->p3_version == -32) {1610 psFree(object);1611 exit(EXIT_FAILURE);1612 }1613 1625 if (strncmp(object->kind, "a string", MAX_STRING_LENGTH)) { 1614 1626 psFree(object); … … 1653 1665 } 1654 1666 if (!object->bg_mean_stdev == 64.64) { 1667 psFree(object); 1668 exit(EXIT_FAILURE); 1669 } 1670 1671 psFree(object); 1672 } 1673 1674 { 1675 p6RunRow *object; 1676 1677 object = p6RunRowAlloc(-32, "a string", "a string", "0001-01-01T00:00:00Z" ); 1678 1679 if (!object) { 1680 exit(EXIT_FAILURE); 1681 } 1682 1683 if (!object->p6_id == -32) { 1684 psFree(object); 1685 exit(EXIT_FAILURE); 1686 } 1687 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 1688 psFree(object); 1689 exit(EXIT_FAILURE); 1690 } 1691 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 1692 psFree(object); 1693 exit(EXIT_FAILURE); 1694 } 1655 1695 psFree(object); 1656 1696 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
