IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2007, 3:24:51 PM (19 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

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

    r15582 r15766  
    315315        rawExpRow       *object;
    316316
    317         object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16    );
     317        object = rawExpRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", 32.32, -16    );
    318318
    319319        if (!object) {
     
    412412            exit(EXIT_FAILURE);
    413413        }
     414        if (!object->M1_x == 32.32) {
     415            psFree(object);
     416            exit(EXIT_FAILURE);
     417        }
     418        if (!object->M1_y == 32.32) {
     419            psFree(object);
     420            exit(EXIT_FAILURE);
     421        }
     422        if (!object->M1_z == 32.32) {
     423            psFree(object);
     424            exit(EXIT_FAILURE);
     425        }
     426        if (!object->M1_tip == 32.32) {
     427            psFree(object);
     428            exit(EXIT_FAILURE);
     429        }
     430        if (!object->M1_tilt == 32.32) {
     431            psFree(object);
     432            exit(EXIT_FAILURE);
     433        }
     434        if (!object->M2_x == 32.32) {
     435            psFree(object);
     436            exit(EXIT_FAILURE);
     437        }
     438        if (!object->M2_y == 32.32) {
     439            psFree(object);
     440            exit(EXIT_FAILURE);
     441        }
     442        if (!object->M2_z == 32.32) {
     443            psFree(object);
     444            exit(EXIT_FAILURE);
     445        }
     446        if (!object->M2_tip == 32.32) {
     447            psFree(object);
     448            exit(EXIT_FAILURE);
     449        }
     450        if (!object->M2_tilt == 32.32) {
     451            psFree(object);
     452            exit(EXIT_FAILURE);
     453        }
     454        if (!object->env_temperature == 32.32) {
     455            psFree(object);
     456            exit(EXIT_FAILURE);
     457        }
     458        if (!object->env_humidity == 32.32) {
     459            psFree(object);
     460            exit(EXIT_FAILURE);
     461        }
     462        if (!object->env_wind_speed == 32.32) {
     463            psFree(object);
     464            exit(EXIT_FAILURE);
     465        }
     466        if (!object->env_wind_dir == 32.32) {
     467            psFree(object);
     468            exit(EXIT_FAILURE);
     469        }
     470        if (!object->pon_time == 32.32) {
     471            psFree(object);
     472            exit(EXIT_FAILURE);
     473        }
    414474        if (!object->user_1 == 64.64) {
    415475            psFree(object);
     
    451511        rawImfileRow    *object;
    452512
    453         object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16    );
     513        object = rawImfileRowAlloc(-64, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, "a string", -16    );
    454514
    455515        if (!object) {
     
    548608            exit(EXIT_FAILURE);
    549609        }
     610        if (!object->M1_x == 32.32) {
     611            psFree(object);
     612            exit(EXIT_FAILURE);
     613        }
     614        if (!object->M1_y == 32.32) {
     615            psFree(object);
     616            exit(EXIT_FAILURE);
     617        }
     618        if (!object->M1_z == 32.32) {
     619            psFree(object);
     620            exit(EXIT_FAILURE);
     621        }
     622        if (!object->M1_tip == 32.32) {
     623            psFree(object);
     624            exit(EXIT_FAILURE);
     625        }
     626        if (!object->M1_tilt == 32.32) {
     627            psFree(object);
     628            exit(EXIT_FAILURE);
     629        }
     630        if (!object->M2_x == 32.32) {
     631            psFree(object);
     632            exit(EXIT_FAILURE);
     633        }
     634        if (!object->M2_y == 32.32) {
     635            psFree(object);
     636            exit(EXIT_FAILURE);
     637        }
     638        if (!object->M2_z == 32.32) {
     639            psFree(object);
     640            exit(EXIT_FAILURE);
     641        }
     642        if (!object->M2_tip == 32.32) {
     643            psFree(object);
     644            exit(EXIT_FAILURE);
     645        }
     646        if (!object->M2_tilt == 32.32) {
     647            psFree(object);
     648            exit(EXIT_FAILURE);
     649        }
     650        if (!object->env_temperature == 32.32) {
     651            psFree(object);
     652            exit(EXIT_FAILURE);
     653        }
     654        if (!object->env_humidity == 32.32) {
     655            psFree(object);
     656            exit(EXIT_FAILURE);
     657        }
     658        if (!object->env_wind_speed == 32.32) {
     659            psFree(object);
     660            exit(EXIT_FAILURE);
     661        }
     662        if (!object->env_wind_dir == 32.32) {
     663            psFree(object);
     664            exit(EXIT_FAILURE);
     665        }
     666        if (!object->pon_time == 32.32) {
     667            psFree(object);
     668            exit(EXIT_FAILURE);
     669        }
    550670        if (!object->user_1 == 64.64) {
    551671            psFree(object);
     
    24892609        flatcorrRunRow  *object;
    24902610
    2491         object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string"    );
     2611        object = flatcorrRunRowAlloc(-64, "a string", "a string", "a string", "a string", "a string"    );
    24922612
    24932613        if (!object) {
     
    25122632        }
    25132633        if (strncmp(object->label, "a string", MAX_STRING_LENGTH)) {
     2634            psFree(object);
     2635            exit(EXIT_FAILURE);
     2636        }
     2637        if (strncmp(object->stats, "a string", MAX_STRING_LENGTH)) {
    25142638            psFree(object);
    25152639            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.