Changeset 15569 for trunk/ippdb/tests/alloc.c
- Timestamp:
- Nov 9, 2007, 3:55:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/alloc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/alloc.c
r15533 r15569 2432 2432 } 2433 2433 2434 { 2435 calDBRow *object; 2436 2437 object = calDBRowAlloc(-64, "a string", "a string" ); 2438 2439 if (!object) { 2440 exit(EXIT_FAILURE); 2441 } 2442 2443 if (!object->cal_id == -64) { 2444 psFree(object); 2445 exit(EXIT_FAILURE); 2446 } 2447 if (strncmp(object->catdir, "a string", MAX_STRING_LENGTH)) { 2448 psFree(object); 2449 exit(EXIT_FAILURE); 2450 } 2451 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2452 psFree(object); 2453 exit(EXIT_FAILURE); 2454 } 2455 2456 psFree(object); 2457 } 2458 2459 { 2460 calRunRow *object; 2461 2462 object = calRunRowAlloc(-64, "a string", "a string", "a string" ); 2463 2464 if (!object) { 2465 exit(EXIT_FAILURE); 2466 } 2467 2468 if (!object->cal_id == -64) { 2469 psFree(object); 2470 exit(EXIT_FAILURE); 2471 } 2472 if (strncmp(object->region, "a string", MAX_STRING_LENGTH)) { 2473 psFree(object); 2474 exit(EXIT_FAILURE); 2475 } 2476 if (strncmp(object->last_step, "a string", MAX_STRING_LENGTH)) { 2477 psFree(object); 2478 exit(EXIT_FAILURE); 2479 } 2480 if (strncmp(object->state, "a string", MAX_STRING_LENGTH)) { 2481 psFree(object); 2482 exit(EXIT_FAILURE); 2483 } 2484 2485 psFree(object); 2486 } 2487 2434 2488 exit(EXIT_SUCCESS); 2435 2489 }
Note:
See TracChangeset
for help on using the changeset viewer.
