IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2006, 11:32:26 AM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.47

File:
1 edited

Legend:

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

    r9242 r9301  
    947947
    948948    {
     949        p3ProcessedExpRow *object;
     950
     951        object = p3ProcessedExpRowAlloc("a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", -32, -32    );
     952
     953        if (!object) {
     954            exit(EXIT_FAILURE);
     955        }
     956
     957        if (strncmp(object->exp_tag, "a string", MAX_STRING_LENGTH)) {
     958            psFree(object);
     959            exit(EXIT_FAILURE);
     960        }
     961        if (strncmp(object->uri, "a string", MAX_STRING_LENGTH)) {
     962            psFree(object);
     963            exit(EXIT_FAILURE);
     964        }
     965        if (strncmp(object->recipe, "a string", MAX_STRING_LENGTH)) {
     966            psFree(object);
     967            exit(EXIT_FAILURE);
     968        }
     969        if (!object->bg == 64.64) {
     970            psFree(object);
     971            exit(EXIT_FAILURE);
     972        }
     973        if (!object->bg_stdev == 64.64) {
     974            psFree(object);
     975            exit(EXIT_FAILURE);
     976        }
     977        if (!object->bg_mean_stdev == 64.64) {
     978            psFree(object);
     979            exit(EXIT_FAILURE);
     980        }
     981        if (!object->sigma_ra == 32.32) {
     982            psFree(object);
     983            exit(EXIT_FAILURE);
     984        }
     985        if (!object->sigma_dec == 32.32) {
     986            psFree(object);
     987            exit(EXIT_FAILURE);
     988        }
     989        if (!object->nastro == -32) {
     990            psFree(object);
     991            exit(EXIT_FAILURE);
     992        }
     993        if (strncmp(object->b1_uri, "a string", MAX_STRING_LENGTH)) {
     994            psFree(object);
     995            exit(EXIT_FAILURE);
     996        }
     997        if (strncmp(object->b2_uri, "a string", MAX_STRING_LENGTH)) {
     998            psFree(object);
     999            exit(EXIT_FAILURE);
     1000        }
     1001        if (!object->p2_version == -32) {
     1002            psFree(object);
     1003            exit(EXIT_FAILURE);
     1004        }
     1005        if (!object->p3_version == -32) {
     1006            psFree(object);
     1007            exit(EXIT_FAILURE);
     1008        }
     1009
     1010        psFree(object);
     1011    }
     1012
     1013    {
    9491014        detRunRow       *object;
    9501015
Note: See TracChangeset for help on using the changeset viewer.