Changeset 11136 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Jan 18, 2007, 2:14:55 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r11113 r11136 302 302 bool status; 303 303 304 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32 );304 object = newExpRowAlloc("a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", -32, "a string"); 305 305 if (!object) { 306 306 exit(EXIT_FAILURE); … … 341 341 exit(EXIT_FAILURE); 342 342 } 343 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 344 psFree(md); 345 exit(EXIT_FAILURE); 346 } 343 347 344 348 psFree(md); … … 387 391 bool status; 388 392 389 object = rawExpRowAlloc("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", "0001-01-01T00:00:00Z", -16);393 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); 390 394 if (!object) { 391 395 exit(EXIT_FAILURE); … … 403 407 exit(EXIT_FAILURE); 404 408 } 409 if (strncmp(psMetadataLookupPtr(&status, md, "exp_id"), "a string", MAX_STRING_LENGTH)) { 410 psFree(md); 411 exit(EXIT_FAILURE); 412 } 405 413 if (strncmp(psMetadataLookupPtr(&status, md, "camera"), "a string", MAX_STRING_LENGTH)) { 406 414 psFree(md); … … 411 419 exit(EXIT_FAILURE); 412 420 } 421 psFree(md); 422 exit(EXIT_FAILURE); 423 } 413 424 if (strncmp(psMetadataLookupPtr(&status, md, "exp_type"), "a string", MAX_STRING_LENGTH)) { 414 425 psFree(md); … … 419 430 exit(EXIT_FAILURE); 420 431 } 432 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 433 psFree(md); 434 exit(EXIT_FAILURE); 435 } 421 436 if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) { 422 437 psFree(md); … … 474 489 exit(EXIT_FAILURE); 475 490 } 476 psFree(md);477 exit(EXIT_FAILURE);478 }479 491 480 492 psFree(md); … … 984 996 bool status; 985 997 986 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z");998 object = detRunRowAlloc(-32, -32, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 32.32, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z", "0001-01-01T00:00:00Z"); 987 999 if (!object) { 988 1000 exit(EXIT_FAILURE); … … 1020 1032 exit(EXIT_FAILURE); 1021 1033 } 1034 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 1035 psFree(md); 1036 exit(EXIT_FAILURE); 1037 } 1022 1038 if (strncmp(psMetadataLookupPtr(&status, md, "filter"), "a string", MAX_STRING_LENGTH)) { 1023 1039 psFree(md); … … 1611 1627 bool status; 1612 1628 1613 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string");1629 object = p4RunRowAlloc(-32, "a string", "a string", "a string", "a string", "a string", "a string", 64.64, 64.64, "a string", "a string"); 1614 1630 if (!object) { 1615 1631 exit(EXIT_FAILURE); … … 1632 1648 } 1633 1649 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 1650 psFree(md); 1651 exit(EXIT_FAILURE); 1652 } 1653 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 1634 1654 psFree(md); 1635 1655 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
