Changeset 15576 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Nov 9, 2007, 5:14:16 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r15569 r15576 2486 2486 } 2487 2487 2488 { 2489 flatcorrRunRow *object; 2490 2491 object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string" ); 2492 2493 if (!object) { 2494 exit(EXIT_FAILURE); 2495 } 2496 2497 if (!object->corr_id == -64) { 2498 psFree(object); 2499 exit(EXIT_FAILURE); 2500 } 2501 if (strncmp(object->dvodb, "a string", MAX_STRING_LENGTH)) { 2502 psFree(object); 2503 exit(EXIT_FAILURE); 2504 } 2505 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2506 psFree(object); 2507 exit(EXIT_FAILURE); 2508 } 2509 if (strncmp(object->workdir, "a string", MAX_STRING_LENGTH)) { 2510 psFree(object); 2511 exit(EXIT_FAILURE); 2512 } 2513 if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) { 2514 psFree(object); 2515 exit(EXIT_FAILURE); 2516 } 2517 2518 psFree(object); 2519 } 2520 2521 { 2522 flatcorrExpRow *object; 2523 2524 object = flatcorrExpRowAlloc(-64, -64, "a string" ); 2525 2526 if (!object) { 2527 exit(EXIT_FAILURE); 2528 } 2529 2530 if (!object->corr_id == -64) { 2531 psFree(object); 2532 exit(EXIT_FAILURE); 2533 } 2534 if (!object->chip_id == -64) { 2535 psFree(object); 2536 exit(EXIT_FAILURE); 2537 } 2538 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2539 psFree(object); 2540 exit(EXIT_FAILURE); 2541 } 2542 2543 psFree(object); 2544 } 2545 2488 2546 exit(EXIT_SUCCESS); 2489 2547 }
Note:
See TracChangeset
for help on using the changeset viewer.
