IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2023, 8:42:18 AM (3 years ago)
Author:
eugene
Message:

fix tests to deal with API change to psPlaneTransformAlloc and the warnings from newer gcc version (sprintf -> ps_snprintf_nowarn); tests build (though many fail)

Location:
branches/eam_branches/ipp-20230313/psModules/test/astrom
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psModules/test/astrom/tap_pmAstrometry.c

    r21220 r42501  
    3232psPlaneTransform *PS_CREATE_2D_IDENTITY_PLANE_TRANSFORM()
    3333{
    34     psPlaneTransform *pt = psPlaneTransformAlloc(1, 1);
     34    psPlaneTransform *pt = psPlaneTransformAlloc(1, 1, PS_POLYNOMIAL_ORD);
    3535    pt->x->coeff[1][0] = 1.0;
    3636    pt->y->coeff[0][1] = 1.0;
  • branches/eam_branches/ipp-20230313/psModules/test/astrom/tap_pmAstrometryWCS_DVO.c

    r17036 r42501  
    470470    psMetadata *header = psMetadataAlloc();
    471471
    472     sprintf (name, "RA--%s", &coords[0].ctype[4]);
     472    ps_snprintf_nowarn (name, 16, "RA--%s", &coords[0].ctype[4]);
    473473    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", name);
    474     sprintf (name, "DEC-%s", &coords[0].ctype[4]);
     474    ps_snprintf_nowarn (name, 16, "DEC-%s", &coords[0].ctype[4]);
    475475    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE2", PS_META_REPLACE, "", name);
    476476
  • branches/eam_branches/ipp-20230313/psModules/test/astrom/tap_pmAstrometryWCS_DVO2.c

    r21220 r42501  
    572572    psMetadata *header = psMetadataAlloc();
    573573
    574     sprintf (name, "RA--%s", &coords[0].ctype[4]);
     574    ps_snprintf_nowarn (name, 16, "RA--%s", &coords[0].ctype[4]);
    575575    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", name);
    576     sprintf (name, "DEC-%s", &coords[0].ctype[4]);
     576    ps_snprintf_nowarn (name, 16, "DEC-%s", &coords[0].ctype[4]);
    577577    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE2", PS_META_REPLACE, "", name);
    578578
  • branches/eam_branches/ipp-20230313/psModules/test/astrom/tap_pmAstrometryWCS_DVO3.c

    r21220 r42501  
    597597    psMetadata *header = psMetadataAlloc();
    598598
    599     sprintf (name, "RA--%s", &coords[0].ctype[4]);
     599    ps_snprintf_nowarn (name, 16, "RA--%s", &coords[0].ctype[4]);
    600600    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", name);
    601     sprintf (name, "DEC-%s", &coords[0].ctype[4]);
     601    ps_snprintf_nowarn (name, 16, "DEC-%s", &coords[0].ctype[4]);
    602602    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE2", PS_META_REPLACE, "", name);
    603603
  • branches/eam_branches/ipp-20230313/psModules/test/astrom/tap_pmAstrometryWCS_DVO4.c

    r21220 r42501  
    2323void test2x(); // small rotation with central offset
    2424void test3x(); // 2nd order term in WRP with central offset
     25
     26bool RegisterMosaic (Coords *in) {
     27    return true;
     28}
    2529
    2630int main (void)
     
    898902    psMetadata *header = psMetadataAlloc();
    899903
    900     sprintf (name, "RA--%s", &coords[0].ctype[4]);
     904    ps_snprintf_nowarn (name, 16, "RA--%s", &coords[0].ctype[4]);
    901905    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE1", PS_META_REPLACE, "", name);
    902     sprintf (name, "DEC-%s", &coords[0].ctype[4]);
     906    ps_snprintf_nowarn (name, 16, "DEC-%s", &coords[0].ctype[4]);
    903907    psMetadataAddStr (header, PS_LIST_TAIL, "CTYPE2", PS_META_REPLACE, "", name);
    904908
Note: See TracChangeset for help on using the changeset viewer.