IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24023


Ignore:
Timestamp:
Apr 30, 2009, 2:26:44 PM (17 years ago)
Author:
eugene
Message:

fixed API errors

Location:
trunk/psLib/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tap_psTime_01.c

    r13623 r24023  
    842842    {
    843843        psMemId id = psMemGetId();
    844         psTime *time2 = psTimeConvert(NULL, PS_TIME_TAI);
    845 
    846         ok(time2 == NULL, "psTimeConvert(NULL, PS_TIME_TAI) returned NULL");
     844        bool status = psTimeConvert(NULL, PS_TIME_TAI);
     845
     846        ok(status == false, "psTimeConvert(NULL, PS_TIME_TAI) returned NULL");
    847847        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    848848
  • trunk/psLib/test/sys/tap_psMemory.c

    r13084 r24023  
    512512   
    513513        psSpline1D *spline;
    514         spline = psSpline1DAlloc(2, 1, 0, 2);
     514        // XXX API changed :
     515        // spline = psSpline1DAlloc(2, 1, 0, 2);
     516        spline = psSpline1DAlloc();
    515517        okay = psMemCheckType(PS_DATA_SPLINE1D, spline);
    516518        if (!okay )
  • trunk/psLib/test/sys/tap_psString.c

    r17515 r24023  
    420420
    421421        //psStringAppend should return 0 for NULL input format
    422         outSize = psStringAppend(test, nullTest);
     422        // note that only a string literal is allowed for the NULL due to gcc change
     423        outSize = psStringAppend(test, NULL);
    423424        ok(outSize == 0, "psStringAppend to return 0 for NULL input format");
    424425
     
    428429
    429430        //psStringPrepend should return 0 for NULL input format
    430         outSize = psStringPrepend(test, nullTest);
     431        // note that only a string literal is allowed for the NULL due to gcc change
     432        outSize = psStringPrepend(test, NULL);
    431433        ok(outSize == 0, "psStringPrepend to return 0 for NULL input format");
    432434
Note: See TracChangeset for help on using the changeset viewer.