Changeset 9054 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Sep 28, 2006, 5:16:20 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r9044 r9054 467 467 bool status; 468 468 469 object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string");469 object = pzPendingImfileRowAlloc("a string", "a string", "a string", -32, "a string", "a string", "a string", "a string"); 470 470 if (!object) { 471 471 exit(EXIT_FAILURE); … … 483 483 exit(EXIT_FAILURE); 484 484 } 485 if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) { 486 psFree(md); 487 exit(EXIT_FAILURE); 488 } 489 if (strncmp(psMetadataLookupPtr(&status, md, "telescope"), "a string", MAX_STRING_LENGTH)) { 490 psFree(md); 491 exit(EXIT_FAILURE); 492 } 485 493 if (!psMetadataLookupS32(&status, md, "bytes") == -32) { 486 494 psFree(md); … … 512 520 bool status; 513 521 514 object = newExpRowAlloc("a string", "a string", "a string", "a string", -32);522 object = newExpRowAlloc("a string", "a string", "a string", "a string", "a string", -32); 515 523 if (!object) { 516 524 exit(EXIT_FAILURE); … … 524 532 psFree(object); 525 533 534 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 535 psFree(md); 536 exit(EXIT_FAILURE); 537 } 526 538 if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) { 527 539 psFree(md); … … 565 577 psFree(object); 566 578 567 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {579 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 568 580 psFree(md); 569 581 exit(EXIT_FAILURE); … … 602 614 psFree(object); 603 615 604 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {616 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 605 617 psFree(md); 606 618 exit(EXIT_FAILURE); … … 691 703 psFree(object); 692 704 693 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {705 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 694 706 psFree(md); 695 707 exit(EXIT_FAILURE); … … 780 792 psFree(object); 781 793 782 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {794 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 783 795 psFree(md); 784 796 exit(EXIT_FAILURE); … … 869 881 psFree(object); 870 882 871 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {883 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 872 884 psFree(md); 873 885 exit(EXIT_FAILURE); … … 902 914 psFree(object); 903 915 904 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {916 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 905 917 psFree(md); 906 918 exit(EXIT_FAILURE); … … 939 951 psFree(object); 940 952 941 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {953 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 942 954 psFree(md); 943 955 exit(EXIT_FAILURE); … … 984 996 psFree(object); 985 997 986 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {998 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 987 999 psFree(md); 988 1000 exit(EXIT_FAILURE); … … 1017 1029 psFree(object); 1018 1030 1019 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1031 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1020 1032 psFree(md); 1021 1033 exit(EXIT_FAILURE); … … 1082 1094 psFree(object); 1083 1095 1084 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1096 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1085 1097 psFree(md); 1086 1098 exit(EXIT_FAILURE); … … 1152 1164 exit(EXIT_FAILURE); 1153 1165 } 1154 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1166 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1155 1167 psFree(md); 1156 1168 exit(EXIT_FAILURE); … … 1185 1197 exit(EXIT_FAILURE); 1186 1198 } 1187 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1199 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1188 1200 psFree(md); 1189 1201 exit(EXIT_FAILURE); … … 1451 1463 exit(EXIT_FAILURE); 1452 1464 } 1453 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1465 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1454 1466 psFree(md); 1455 1467 exit(EXIT_FAILURE); … … 1516 1528 exit(EXIT_FAILURE); 1517 1529 } 1518 if (strncmp(psMetadataLookupPtr(&status, md, "exp_ id"), "a string", MAX_STRING_LENGTH)) {1530 if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) { 1519 1531 psFree(md); 1520 1532 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
