IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 1, 2005, 12:01:17 PM (21 years ago)
Author:
drobbin
Message:

revised psPoly struct/fxns, psMemProblem, according to psLib SDRS rev. 15

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psFunc02.c

    r3682 r4447  
    360360    /****************************************************************************/
    361361    /****************************************************************************/
    362     testStatus = true;
    363     printPositiveTestHeader(stdout,
    364                             "psFunction functions",
    365                             "psSpline1DAllocGeneric(): negative order");
    366 
    367     bounds = psVectorAlloc(5,PS_TYPE_F32);
    368     bounds->n = bounds->nalloc;
    369     for(psU32 n = 0; n < 5; n++ ) {
    370         bounds->data.F32[n] = (n+1) * 2;
    371     }
    372     psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");
    373     tmpSpline = psSpline1DAllocGeneric(bounds, -1);
    374     if (tmpSpline != NULL) {
    375         psError(PS_ERR_UNKNOWN,true,"Did not return null for negative order");
    376         return 10;
    377     }
     362    ///XXX: REMOVED FOLLOWING TEST AFTER CHANGING TO UNSIGNED INT///
     363    /*    testStatus = true;
     364        printPositiveTestHeader(stdout,
     365                                "psFunction functions",
     366                                "psSpline1DAllocGeneric(): negative order");
     367     
     368        bounds = psVectorAlloc(5,PS_TYPE_F32);
     369        bounds->n = bounds->nalloc;
     370        for(psU32 n = 0; n < 5; n++ ) {
     371            bounds->data.F32[n] = (n+1) * 2;
     372        }
     373        psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");
     374        tmpSpline = psSpline1DAllocGeneric(bounds, -1);
     375        if (tmpSpline != NULL) {
     376            psError(PS_ERR_UNKNOWN,true,"Did not return null for negative order");
     377            return 10;
     378        }
     379        psFree(bounds);
     380        psMemCheckCorruption(1);
     381        memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false);
     382        if (0 != memLeaks) {
     383            psError(PS_ERR_UNKNOWN,true,"Memory Leaks! (%d leaks)", memLeaks);
     384            testStatus = false;
     385        }
     386        printFooter(stdout,
     387                    "psFunctions functions",
     388                    "psSpline1DAllocGeneric(): negative order",
     389                    testStatus);
     390    */
    378391    psFree(bounds);
    379     psMemCheckCorruption(1);
    380     memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false);
    381     if (0 != memLeaks) {
    382         psError(PS_ERR_UNKNOWN,true,"Memory Leaks! (%d leaks)", memLeaks);
    383         testStatus = false;
    384     }
    385     printFooter(stdout,
    386                 "psFunctions functions",
    387                 "psSpline1DAllocGeneric(): negative order",
    388                 testStatus);
    389392
    390393    /****************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.