Changeset 14598 for trunk/ippdb/tests/metadatafromobject.c
- Timestamp:
- Aug 21, 2007, 4:25:34 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/metadatafromobject.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/metadatafromobject.c
r14451 r14598 151 151 bool status; 152 152 153 object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string" , -64);153 object = pzPendingImfileRowAlloc("a string", "a string", "a string", "a string", "a string"); 154 154 if (!object) { 155 155 exit(EXIT_FAILURE); … … 183 183 exit(EXIT_FAILURE); 184 184 } 185 psFree(md);186 exit(EXIT_FAILURE);187 }188 185 189 186 psFree(md); … … 228 225 bool status; 229 226 230 object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", -64,"a string");227 object = pzDoneImfileRowAlloc("a string", "a string", "a string", "a string", "a string", "a string"); 231 228 if (!object) { 232 229 exit(EXIT_FAILURE); … … 260 257 exit(EXIT_FAILURE); 261 258 } 262 psFree(md);263 exit(EXIT_FAILURE);264 }265 259 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 266 260 psFree(md); … … 1151 1145 bool status; 1152 1146 1153 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, -16);1147 object = warpSkyfileRowAlloc(-64, "a string", "a string", "a string", "a string", 64.64, 64.64, 64.64, -16); 1154 1148 if (!object) { 1155 1149 exit(EXIT_FAILURE); … … 1190 1184 exit(EXIT_FAILURE); 1191 1185 } 1186 if (!psMetadataLookupF64(&status, md, "pixel_fill") == 64.64) { 1187 psFree(md); 1188 exit(EXIT_FAILURE); 1189 } 1192 1190 psFree(md); 1193 1191 exit(EXIT_FAILURE); … … 2395 2393 exit(EXIT_FAILURE); 2396 2394 } 2395 psFree(md); 2396 exit(EXIT_FAILURE); 2397 } 2398 2399 psFree(md); 2400 } 2401 2402 { 2403 psMetadata *md; 2404 magicRunRow *object; 2405 bool status; 2406 2407 object = magicRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z"); 2408 if (!object) { 2409 exit(EXIT_FAILURE); 2410 } 2411 2412 md = magicRunMetadataFromObject(object); 2413 if (!md) { 2414 exit(EXIT_FAILURE); 2415 } 2416 2417 psFree(object); 2418 2419 psFree(md); 2420 exit(EXIT_FAILURE); 2421 } 2422 if (strncmp(psMetadataLookupPtr(&status, md, "state"), "a string", MAX_STRING_LENGTH)) { 2423 psFree(md); 2424 exit(EXIT_FAILURE); 2425 } 2426 if (strncmp(psMetadataLookupPtr(&status, md, "workdir"), "a string", MAX_STRING_LENGTH)) { 2427 psFree(md); 2428 exit(EXIT_FAILURE); 2429 } 2430 if (strncmp(psMetadataLookupPtr(&status, md, "workdir_state"), "a string", MAX_STRING_LENGTH)) { 2431 psFree(md); 2432 exit(EXIT_FAILURE); 2433 } 2434 if (strncmp(psMetadataLookupPtr(&status, md, "label"), "a string", MAX_STRING_LENGTH)) { 2435 psFree(md); 2436 exit(EXIT_FAILURE); 2437 } 2438 if (strncmp(psMetadataLookupPtr(&status, md, "dvodb"), "a string", MAX_STRING_LENGTH)) { 2439 psFree(md); 2440 exit(EXIT_FAILURE); 2441 } 2442 psFree(md); 2443 exit(EXIT_FAILURE); 2444 } 2445 2446 psFree(md); 2447 } 2448 2449 { 2450 psMetadata *md; 2451 magicInputSkyfileRow *object; 2452 bool status; 2453 2454 object = magicInputSkyfileRowAlloc(-64, -64, -32); 2455 if (!object) { 2456 exit(EXIT_FAILURE); 2457 } 2458 2459 md = magicInputSkyfileMetadataFromObject(object); 2460 if (!md) { 2461 exit(EXIT_FAILURE); 2462 } 2463 2464 psFree(object); 2465 2466 psFree(md); 2467 exit(EXIT_FAILURE); 2468 } 2469 psFree(md); 2470 exit(EXIT_FAILURE); 2471 } 2472 if (!psMetadataLookupS32(&status, md, "node") == -32) { 2473 psFree(md); 2474 exit(EXIT_FAILURE); 2475 } 2476 2477 psFree(md); 2478 } 2479 2480 { 2481 psMetadata *md; 2482 magicTreeRow *object; 2483 bool status; 2484 2485 object = magicTreeRowAlloc(-64, "a string", "a string"); 2486 if (!object) { 2487 exit(EXIT_FAILURE); 2488 } 2489 2490 md = magicTreeMetadataFromObject(object); 2491 if (!md) { 2492 exit(EXIT_FAILURE); 2493 } 2494 2495 psFree(object); 2496 2497 psFree(md); 2498 exit(EXIT_FAILURE); 2499 } 2500 if (strncmp(psMetadataLookupPtr(&status, md, "node"), "a string", MAX_STRING_LENGTH)) { 2501 psFree(md); 2502 exit(EXIT_FAILURE); 2503 } 2504 if (strncmp(psMetadataLookupPtr(&status, md, "dep"), "a string", MAX_STRING_LENGTH)) { 2505 psFree(md); 2506 exit(EXIT_FAILURE); 2507 } 2508 2509 psFree(md); 2510 } 2511 2512 { 2513 psMetadata *md; 2514 magicNodeResultRow *object; 2515 bool status; 2516 2517 object = magicNodeResultRowAlloc(-64, "a string", "a string"); 2518 if (!object) { 2519 exit(EXIT_FAILURE); 2520 } 2521 2522 md = magicNodeResultMetadataFromObject(object); 2523 if (!md) { 2524 exit(EXIT_FAILURE); 2525 } 2526 2527 psFree(object); 2528 2529 psFree(md); 2530 exit(EXIT_FAILURE); 2531 } 2532 if (strncmp(psMetadataLookupPtr(&status, md, "node"), "a string", MAX_STRING_LENGTH)) { 2533 psFree(md); 2534 exit(EXIT_FAILURE); 2535 } 2536 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 2537 psFree(md); 2538 exit(EXIT_FAILURE); 2539 } 2540 2541 psFree(md); 2542 } 2543 2544 { 2545 psMetadata *md; 2546 magicMaskRow *object; 2547 bool status; 2548 2549 object = magicMaskRowAlloc(-64, "a string"); 2550 if (!object) { 2551 exit(EXIT_FAILURE); 2552 } 2553 2554 md = magicMaskMetadataFromObject(object); 2555 if (!md) { 2556 exit(EXIT_FAILURE); 2557 } 2558 2559 psFree(object); 2560 2561 psFree(md); 2562 exit(EXIT_FAILURE); 2563 } 2564 if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) { 2397 2565 psFree(md); 2398 2566 exit(EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.
