IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 3:55:36 PM (19 years ago)
Author:
jhoblitt
Message:

add calibration.md

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/alloc.c

    r15533 r15569  
    24322432    }
    24332433
     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
    24342488    exit(EXIT_SUCCESS);
    24352489}
Note: See TracChangeset for help on using the changeset viewer.