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

Location:
trunk/psLib/test/dataManip
Files:
3 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    /****************************************************************************/
  • trunk/psLib/test/dataManip/verified/tst_psFunc02.stderr

    r3127 r4447  
    1010    Following should generate an error message.
    1111<DATE><TIME>|<HOST>|E|psSpline1DAllocGeneric (FILE:LINENO)
    12     Error: order is less than 0.
    13 <DATE><TIME>|<HOST>|I|main
    14     Following should generate an error message.
    15 <DATE><TIME>|<HOST>|E|psSpline1DAllocGeneric (FILE:LINENO)
    1612    Unallowable operation: psVector bounds or its data is NULL.
    1713<DATE><TIME>|<HOST>|I|main
  • trunk/psLib/test/dataManip/verified/tst_psFunc02.stdout

    r3115 r4447  
    8989/***************************** TESTPOINT ******************************************\
    9090*             TestFile: tst_psFunc02.c                                             *
    91 *            TestPoint: psFunction functions{psSpline1DAllocGeneric(): negative order} *
    92 *             TestType: Positive                                                   *
    93 \**********************************************************************************/
    94 
    95 
    96 ---> TESTPOINT PASSED (psFunctions functions{psSpline1DAllocGeneric(): negative order} | tst_psFunc02.c)
    97 
    98 /***************************** TESTPOINT ******************************************\
    99 *             TestFile: tst_psFunc02.c                                             *
    10091*            TestPoint: psFunction functions{psSpline1DAllocGeneric(): bound equal to NULL} *
    10192*             TestType: Positive                                                   *
Note: See TracChangeset for help on using the changeset viewer.