IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9242 for trunk/ippdb/tests


Ignore:
Timestamp:
Oct 4, 2006, 1:17:06 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.46

Location:
trunk/ippdb/tests
Files:
4 edited

Legend:

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

    r9229 r9242  
    570570            exit(EXIT_FAILURE);
    571571        }
    572         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     572        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    573573            psFree(object);
    574574            exit(EXIT_FAILURE);
     
    655655            exit(EXIT_FAILURE);
    656656        }
    657         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     657        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    658658            psFree(object);
    659659            exit(EXIT_FAILURE);
     
    740740            exit(EXIT_FAILURE);
    741741        }
    742         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     742        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    743743            psFree(object);
    744744            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/metadatafromobject.c

    r9229 r9242  
    682682            exit(EXIT_FAILURE);
    683683        }
    684         if (strncmp(psMetadataLookupPtr(&status, md, "obstype"), "a string", MAX_STRING_LENGTH)) {
     684        if (strncmp(psMetadataLookupPtr(&status, md, "object"), "a string", MAX_STRING_LENGTH)) {
    685685            psFree(md);
    686686            exit(EXIT_FAILURE);
     
    775775            exit(EXIT_FAILURE);
    776776        }
    777         if (strncmp(psMetadataLookupPtr(&status, md, "obstype"), "a string", MAX_STRING_LENGTH)) {
     777        if (strncmp(psMetadataLookupPtr(&status, md, "object"), "a string", MAX_STRING_LENGTH)) {
    778778            psFree(md);
    779779            exit(EXIT_FAILURE);
     
    868868            exit(EXIT_FAILURE);
    869869        }
    870         if (strncmp(psMetadataLookupPtr(&status, md, "obstype"), "a string", MAX_STRING_LENGTH)) {
     870        if (strncmp(psMetadataLookupPtr(&status, md, "object"), "a string", MAX_STRING_LENGTH)) {
    871871            psFree(md);
    872872            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/objectfrommetadata.c

    r9229 r9242  
    947947            exit(EXIT_FAILURE);
    948948        }
    949         if (!psMetadataAddStr(md, PS_LIST_TAIL, "obstype", 0, NULL, "a string")) {
     949        if (!psMetadataAddStr(md, PS_LIST_TAIL, "object", 0, NULL, "a string")) {
    950950            psFree(md);
    951951            exit(EXIT_FAILURE);
     
    10281028            exit(EXIT_FAILURE);
    10291029        }
    1030         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     1030        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    10311031            psFree(object);
    10321032            exit(EXIT_FAILURE);
     
    11091109            exit(EXIT_FAILURE);
    11101110        }
    1111         if (!psMetadataAddStr(md, PS_LIST_TAIL, "obstype", 0, NULL, "a string")) {
     1111        if (!psMetadataAddStr(md, PS_LIST_TAIL, "object", 0, NULL, "a string")) {
    11121112            psFree(md);
    11131113            exit(EXIT_FAILURE);
     
    11901190            exit(EXIT_FAILURE);
    11911191        }
    1192         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     1192        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    11931193            psFree(object);
    11941194            exit(EXIT_FAILURE);
     
    12711271            exit(EXIT_FAILURE);
    12721272        }
    1273         if (!psMetadataAddStr(md, PS_LIST_TAIL, "obstype", 0, NULL, "a string")) {
     1273        if (!psMetadataAddStr(md, PS_LIST_TAIL, "object", 0, NULL, "a string")) {
    12741274            psFree(md);
    12751275            exit(EXIT_FAILURE);
     
    13521352            exit(EXIT_FAILURE);
    13531353        }
    1354         if (strncmp(object->obstype, "a string", MAX_STRING_LENGTH)) {
     1354        if (strncmp(object->object, "a string", MAX_STRING_LENGTH)) {
    13551355            psFree(object);
    13561356            exit(EXIT_FAILURE);
  • trunk/ippdb/tests/pop.c

    r9229 r9242  
    298298        psF32           ccd_temp;
    299299        psF64           posang;
    300         char            obstype[256];
    301 
    302         dbh = psDBInit("localhost", "test", NULL, "test");
    303         if (!dbh) {
    304             exit(EXIT_FAILURE);
    305         }
    306 
    307         if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
     300        char            object[256];
     301
     302        dbh = psDBInit("localhost", "test", NULL, "test");
     303        if (!dbh) {
     304            exit(EXIT_FAILURE);
     305        }
     306
     307        if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&object)) {
    308308            exit(EXIT_FAILURE);
    309309        }
     
    331331        psF32           ccd_temp;
    332332        psF64           posang;
    333         char            obstype[256];
    334 
    335         dbh = psDBInit("localhost", "test", NULL, "test");
    336         if (!dbh) {
    337             exit(EXIT_FAILURE);
    338         }
    339 
    340         if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
     333        char            object[256];
     334
     335        dbh = psDBInit("localhost", "test", NULL, "test");
     336        if (!dbh) {
     337            exit(EXIT_FAILURE);
     338        }
     339
     340        if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&object)) {
    341341            exit(EXIT_FAILURE);
    342342        }
     
    364364        psF32           ccd_temp;
    365365        psF64           posang;
    366         char            obstype[256];
    367 
    368         dbh = psDBInit("localhost", "test", NULL, "test");
    369         if (!dbh) {
    370             exit(EXIT_FAILURE);
    371         }
    372 
    373         if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
     366        char            object[256];
     367
     368        dbh = psDBInit("localhost", "test", NULL, "test");
     369        if (!dbh) {
     370            exit(EXIT_FAILURE);
     371        }
     372
     373        if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&object)) {
    374374            exit(EXIT_FAILURE);
    375375        }
Note: See TracChangeset for help on using the changeset viewer.