Changeset 9054 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Sep 28, 2006, 5:16:20 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r9044 r9054 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", "a string", "a string", -32, "a string", "a string", "a string", "a string" ); 387 387 388 388 if (!object) { … … 394 394 exit(EXIT_FAILURE); 395 395 } 396 if (strncmp(object->camera, "a string", MAX_STRING_LENGTH)) { 397 psFree(object); 398 exit(EXIT_FAILURE); 399 } 400 if (strncmp(object->telescope, "a string", MAX_STRING_LENGTH)) { 401 psFree(object); 402 exit(EXIT_FAILURE); 403 } 396 404 if (!object->bytes == -32) { 397 405 psFree(object); … … 421 429 newExpRow *object; 422 430 423 object = newExpRowAlloc("a string", "a string", "a string", "a string", -32 ); 424 425 if (!object) { 426 exit(EXIT_FAILURE); 427 } 428 431 object = newExpRowAlloc("a string", "a string", "a string", "a string", "a string", -32 ); 432 433 if (!object) { 434 exit(EXIT_FAILURE); 435 } 436 437 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 438 psFree(object); 439 exit(EXIT_FAILURE); 440 } 429 441 if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) { 430 442 psFree(object); … … 460 472 } 461 473 462 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {474 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 463 475 psFree(object); 464 476 exit(EXIT_FAILURE); … … 489 501 } 490 502 491 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {503 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 492 504 psFree(object); 493 505 exit(EXIT_FAILURE); … … 570 582 } 571 583 572 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {584 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 573 585 psFree(object); 574 586 exit(EXIT_FAILURE); … … 651 663 } 652 664 653 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {665 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 654 666 psFree(object); 655 667 exit(EXIT_FAILURE); … … 732 744 } 733 745 734 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {746 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 735 747 psFree(object); 736 748 exit(EXIT_FAILURE); … … 757 769 } 758 770 759 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {771 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 760 772 psFree(object); 761 773 exit(EXIT_FAILURE); … … 786 798 } 787 799 788 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {800 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 789 801 psFree(object); 790 802 exit(EXIT_FAILURE); … … 823 835 } 824 836 825 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {837 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 826 838 psFree(object); 827 839 exit(EXIT_FAILURE); … … 848 860 } 849 861 850 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {862 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 851 863 psFree(object); 852 864 exit(EXIT_FAILURE); … … 905 917 } 906 918 907 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {919 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 908 920 psFree(object); 909 921 exit(EXIT_FAILURE); … … 959 971 exit(EXIT_FAILURE); 960 972 } 961 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {973 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 962 974 psFree(object); 963 975 exit(EXIT_FAILURE); … … 984 996 exit(EXIT_FAILURE); 985 997 } 986 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {998 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 987 999 psFree(object); 988 1000 exit(EXIT_FAILURE); … … 1202 1214 exit(EXIT_FAILURE); 1203 1215 } 1204 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {1216 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 1205 1217 psFree(object); 1206 1218 exit(EXIT_FAILURE); … … 1259 1271 exit(EXIT_FAILURE); 1260 1272 } 1261 if (strncmp(object->exp_ id, "a string", MAX_STRING_LENGTH)) {1273 if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) { 1262 1274 psFree(object); 1263 1275 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
