IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1404


Ignore:
Timestamp:
Aug 6, 2004, 11:50:14 AM (22 years ago)
Author:
desonia
Message:

modified runTest / FullUnitTest to suppress line numbers in messages.

Location:
trunk/psLib
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/psLib.kdevses

    r1393 r1404  
    22<!DOCTYPE KDevPrjSession>
    33<KDevPrjSession>
    4  <DocsAndViews NumberOfDocuments="3" >
    5   <Doc0 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psPhotometry.h" >
    6    <View0 line="0" Type="???" >
    7     <AdditionalSettings Top="1" Width="1210" Attach="1" Height="700" Left="1" MinMaxMode="0" />
    8    </View0>
    9   </Doc0>
    10   <Doc1 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.h" >
    11    <View0 line="197" Type="???" >
    12     <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" />
    13    </View0>
    14   </Doc1>
    15   <Doc2 NumberOfViews="1" URL="file:/home/desonia/psLib/src/astronomy/psCoord.c" >
    16    <View0 line="26" Type="???" >
    17     <AdditionalSettings Top="1" Width="1210" Attach="1" Height="672" Left="1" MinMaxMode="0" />
    18    </View0>
    19   </Doc2>
    20  </DocsAndViews>
     4 <DocsAndViews NumberOfDocuments="0" />
    215 <pluginList>
    226  <kdevbookmarks>
  • trunk/psLib/src/collections/psVector.c

    r1385 r1404  
    88*  @author Ross Harman, MHPCC
    99*
    10 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-04 23:37:39 $
     10*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-06 21:50:13 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    117117}
    118118
    119 psVector *psVectorRecycle( psVector *restrict in, psElemType type, unsigned int nalloc )
     119psVector *psVectorRecycle( psVector *restrict in, unsigned int nalloc, psElemType type )
    120120{
    121121    psElemType elemType;
  • trunk/psLib/src/dataManip/psFFT.c

    r1385 r1404  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-08-04 23:37:39 $
     7*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-08-06 21:50:13 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    484484    numElements = in->n;
    485485
    486     out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     486    out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    487487    out->n = numElements;
    488488
     
    542542        psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. "
    543543                  "Just a vector copy was performed." );
    544         out = psVectorRecycle( out, type, numElements );
     544        out = psVectorRecycle( out, numElements, type );
    545545        out->n = numElements;
    546546        memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) );
     
    552552        psC32* inVec = in->data.C32;
    553553
    554         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     554        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    555555        out->n = numElements;
    556556        outVec = out->data.F32;
     
    588588        psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. "
    589589                  "A zeroed vector was returned." );
    590         out = psVectorRecycle( out, type, numElements );
     590        out = psVectorRecycle( out, numElements, type );
    591591        out->n = numElements;
    592592        memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    598598        psC32* inVec = in->data.C32;
    599599
    600         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     600        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    601601        out->n = numElements;
    602602        outVec = out->data.F32;
     
    650650        psF32* imagVec = imag->data.F32;
    651651
    652         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     652        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    653653        out->n = numElements;
    654654        outVec = out->data.C32;
     
    687687                  "Vector copy was performed instead." );
    688688
    689         out = psVectorRecycle( out, type, numElements );
     689        out = psVectorRecycle( out, numElements, type );
    690690        out->n = numElements;
    691691        memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    697697        psC32* inVec = in->data.C32;
    698698
    699         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     699        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    700700        out->n = numElements;
    701701        outVec = out->data.C32;
     
    746746        psF32 inAbs2;
    747747
    748         out = psVectorRecycle( out, PS_TYPE_F32, outNumElements );
     748        out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 );
    749749        out->n = outNumElements;
    750750        outVec = out->data.F32;
  • trunk/psLib/src/dataManip/psVectorFFT.c

    r1385 r1404  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-08-04 23:37:39 $
     7*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-08-06 21:50:13 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    484484    numElements = in->n;
    485485
    486     out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     486    out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    487487    out->n = numElements;
    488488
     
    542542        psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. "
    543543                  "Just a vector copy was performed." );
    544         out = psVectorRecycle( out, type, numElements );
     544        out = psVectorRecycle( out, numElements, type );
    545545        out->n = numElements;
    546546        memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) );
     
    552552        psC32* inVec = in->data.C32;
    553553
    554         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     554        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    555555        out->n = numElements;
    556556        outVec = out->data.F32;
     
    588588        psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. "
    589589                  "A zeroed vector was returned." );
    590         out = psVectorRecycle( out, type, numElements );
     590        out = psVectorRecycle( out, numElements, type );
    591591        out->n = numElements;
    592592        memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    598598        psC32* inVec = in->data.C32;
    599599
    600         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     600        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    601601        out->n = numElements;
    602602        outVec = out->data.F32;
     
    650650        psF32* imagVec = imag->data.F32;
    651651
    652         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     652        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    653653        out->n = numElements;
    654654        outVec = out->data.C32;
     
    687687                  "Vector copy was performed instead." );
    688688
    689         out = psVectorRecycle( out, type, numElements );
     689        out = psVectorRecycle( out, numElements, type );
    690690        out->n = numElements;
    691691        memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    697697        psC32* inVec = in->data.C32;
    698698
    699         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     699        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    700700        out->n = numElements;
    701701        outVec = out->data.C32;
     
    746746        psF32 inAbs2;
    747747
    748         out = psVectorRecycle( out, PS_TYPE_F32, outNumElements );
     748        out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 );
    749749        out->n = outNumElements;
    750750        outVec = out->data.F32;
  • trunk/psLib/src/fft/psVectorFFT.c

    r1385 r1404  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2004-08-04 23:37:39 $
     7*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2004-08-06 21:50:13 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    484484    numElements = in->n;
    485485
    486     out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     486    out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    487487    out->n = numElements;
    488488
     
    542542        psLogMsg( __func__, PS_LOG_WARN, "Real portion of a non-Complex type called called for. "
    543543                  "Just a vector copy was performed." );
    544         out = psVectorRecycle( out, type, numElements );
     544        out = psVectorRecycle( out, numElements, type );
    545545        out->n = numElements;
    546546        memcpy( out->data.V, in->data.V, numElements * PSELEMTYPE_SIZEOF( type ) );
     
    552552        psC32* inVec = in->data.C32;
    553553
    554         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     554        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    555555        out->n = numElements;
    556556        outVec = out->data.F32;
     
    588588        psLogMsg( __func__, PS_LOG_WARN, "Imaginary portion of a non-Complex type called for. "
    589589                  "A zeroed vector was returned." );
    590         out = psVectorRecycle( out, type, numElements );
     590        out = psVectorRecycle( out, numElements, type );
    591591        out->n = numElements;
    592592        memset( out->data.V, 0, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    598598        psC32* inVec = in->data.C32;
    599599
    600         out = psVectorRecycle( out, PS_TYPE_F32, numElements );
     600        out = psVectorRecycle( out, numElements, PS_TYPE_F32 );
    601601        out->n = numElements;
    602602        outVec = out->data.F32;
     
    650650        psF32* imagVec = imag->data.F32;
    651651
    652         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     652        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    653653        out->n = numElements;
    654654        outVec = out->data.C32;
     
    687687                  "Vector copy was performed instead." );
    688688
    689         out = psVectorRecycle( out, type, numElements );
     689        out = psVectorRecycle( out, numElements, type );
    690690        out->n = numElements;
    691691        memcpy( out->data.V, in->data.V, PSELEMTYPE_SIZEOF( type ) * numElements );
     
    697697        psC32* inVec = in->data.C32;
    698698
    699         out = psVectorRecycle( out, PS_TYPE_C32, numElements );
     699        out = psVectorRecycle( out, numElements, PS_TYPE_C32 );
    700700        out->n = numElements;
    701701        outVec = out->data.C32;
     
    746746        psF32 inAbs2;
    747747
    748         out = psVectorRecycle( out, PS_TYPE_F32, outNumElements );
     748        out = psVectorRecycle( out, outNumElements, PS_TYPE_F32 );
    749749        out->n = outNumElements;
    750750        outVec = out->data.F32;
  • trunk/psLib/src/image/psImageExtraction.c

    r1385 r1404  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-08-04 23:37:39 $
     11*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-08-06 21:50:13 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    230230
    231231psVector* psImageSlice( psVector* out,
     232                        psVector* slicePositions,
    232233                        const psImage* restrict in,
    233234                        const psImage* restrict mask,
     
    321322        psVector* maskVec = NULL;
    322323        psMaskType* maskData = NULL;
     324        psU32* outPosition = NULL;
    323325
    324326        // recycle output to make a proper sized/type output structure
    325327        // n.b. type is double as that is the type given for all stats in psStats.
    326         out = psVectorRecycle( out, PS_TYPE_F64, numCols );
     328        out = psVectorRecycle( out, numCols, PS_TYPE_F64);
     329        if (slicePositions != NULL) {
     330            slicePositions = psVectorRecycle(slicePositions,numCols,PS_TYPE_U32);
     331            outPosition = slicePositions->data.U32;
     332        }
    327333        outData = out->data.F64;
    328334        if ( delta < 0 ) {
     
    355361                (void)p_psGetStatValue(myStats,&statVal); \
    356362                *outData = statVal; \
     363                if (outPosition != NULL) { \
     364                    *(outPosition++) = col+c; \
     365                } \
    357366                outData += delta; \
    358367            } \
     
    385394            psVector* maskVec = NULL;
    386395            int elementSize = PSELEMTYPE_SIZEOF( type );
     396            psU32* outPosition = NULL;
    387397
    388398            // fill in psVectors to fake out the statistics functions.
     
    398408            // recycle output to make a proper sized/type output structure
    399409            // n.b. type is double as that is the type given for all stats in psStats.
    400             out = psVectorRecycle( out, PS_TYPE_F64, numRows );
     410            out = psVectorRecycle( out, numRows, PS_TYPE_F64 );
     411            if (slicePositions != NULL) {
     412                slicePositions = psVectorRecycle(slicePositions,numRows,PS_TYPE_U32);
     413                outPosition = slicePositions->data.U32;
     414            }
    401415            outData = out->data.F64;
    402416            if ( delta < 0 ) {
     
    413427                ( void ) p_psGetStatValue( myStats, &statVal ); // we know it works cause we tested it above
    414428                *outData = statVal;
     429                if (outPosition != NULL) {
     430                    *(outPosition++) = row+r;
     431                }
    415432                outData += delta;
    416433            }
  • trunk/psLib/src/image/psImageExtraction.h

    r1374 r1404  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-08-04 00:55:17 $
     11*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-08-06 21:50:13 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6868psVector* psImageSlice(
    6969    psVector* out,
     70    psVector* slicePositions,
    7071    const psImage* restrict input,
    7172    const psImage* restrict mask,
  • trunk/psLib/src/mathtypes/psVector.c

    r1385 r1404  
    88*  @author Ross Harman, MHPCC
    99*
    10 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2004-08-04 23:37:39 $
     10*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2004-08-06 21:50:13 $
    1212*
    1313*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    117117}
    118118
    119 psVector *psVectorRecycle( psVector *restrict in, psElemType type, unsigned int nalloc )
     119psVector *psVectorRecycle( psVector *restrict in, unsigned int nalloc, psElemType type )
    120120{
    121121    psElemType elemType;
  • trunk/psLib/test/FullUnitTest

    r1198 r1404  
    1919#  RETURN : integer number of tests which failed
    2020#
    21 #  $Revision: 1.10 $  $Name: not supported by cvs2svn $
    22 #  $Date: 2004-07-08 19:34:18 $
     21#  $Revision: 1.11 $  $Name: not supported by cvs2svn $
     22#  $Date: 2004-08-06 21:50:13 $
    2323#
    2424#  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    555555   chop $hostname;
    556556   while( <OUTFILE> ) {
    557        s/\d+:\d+:\d+/ <DATE> /;
    558        s/\s+\d+:\d+:\d+\w/ <TIME> /;
    559        s/$hostname/<HOST>/;
     557       s/\s+\d+:\d+:\d+\w/<TIME>/g;
     558       s/\d+:\d+:\d+/<DATE>/g;
     559       s/$hostname/<HOST>/g;
     560       s/: Line \d+/: Line <LINENO>/g;
     561       s/\:\d+/\:<LINENO>/g;
    560562       # Filter lines with *** malloc.  This is an artifact of Mac testing of
    561563       # memory functions
     
    575577   # Replace the variable date, time and host information with constants
    576578   while( <OUTFILE> ) {
    577        s/\d+:\d+:\d+/ <DATE> /;
    578        s/\s+\d+:\d+:\d+\w/ <TIME> /;
    579        s/$hostname/<HOST>/;
     579       s/\s+\d+:\d+:\d+\w/<TIME>/g;
     580       s/\d+:\d+:\d+/<DATE>/g;
     581       s/$hostname/<HOST>/g;
     582       s/: Line \d+/: Line <LINENO>/g;
     583       s/\:\d+/\:<LINENO>/g;
    580584       # Filter lines with *** malloc.  This is an artifact of Mac testing of
    581585       # memory functions
  • trunk/psLib/test/astronomy/verified/tst_psMetadata_01.stderr

    r1395 r1404  
    1  <DATE> <TIME> |<HOST>|E|psMetadataFRead|Null FITS file descriptor not allowed
    2  <DATE> <TIME> |<HOST>|E|psMetadataFRead|Null extName and extNum = 0 not allowed
    3  <DATE> <TIME> |<HOST>|E|psMetadataFRead|FITS error while locating header 22: tried to move past end of file
    4  <DATE> <TIME> |<HOST>|E|psMetadataFRead|FITS error while locating header AARGH: illegal HDU number
     1<DATE><TIME>|<HOST>|E|psMetadataFRead|Null FITS file descriptor not allowed
     2<DATE><TIME>|<HOST>|E|psMetadataFRead|Null extname AND extnum = 0 not allowed
     3<DATE><TIME>|<HOST>|E|psMetadataFRead|FITS error while locating header: tried to move past end of file
  • trunk/psLib/test/astronomy/verified/tst_psMetadata_01.stdout

    r1402 r1404  
    77FITS file open status: OK - no error
    88
     9Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     10Key Name:    NAXIS  Key Type:  2  Key Value:               0  Key Comment: number of data axes
     11Key Name:   BITPIX  Key Type:  2  Key Value:               8  Key Comment: number of bits per data pixel
    912Key Name:   SIMPLE  Key Type:  1  Key Value:               1  Key Comment: file does conform to FITS standard
    10 Key Name:   BITPIX  Key Type:  2  Key Value:               8  Key Comment: number of bits per data pixel
    11 Key Name:    NAXIS  Key Type:  2  Key Value:               0  Key Comment: number of data axes
    12 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    1313
    1414---> TESTPOINT PASSED (psMetadata{Test A - Read 1st hdr from simple FITS file} | tst_psMetadata_01.c)
     
    2222FITS file open status: OK - no error
    2323
     24Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     25Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     26Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     27Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T<DATE>
     28Key Name:  EXTNAME  Key Type:  5  Key Value:     'MY_DATA_1'  Key Comment:
     29Key Name:   BITPIX  Key Type:  2  Key Value:             -64  Key Comment: number of bits per data pixel
     30Key Name:   GCOUNT  Key Type:  2  Key Value:               1  Key Comment: required keyword; must = 1
     31Key Name:   PCOUNT  Key Type:  2  Key Value:               0  Key Comment: required keyword; must = 0
     32Key Name:   NAXIS1  Key Type:  2  Key Value:              64  Key Comment: length of data axis 1
     33Key Name:    NAXIS  Key Type:  2  Key Value:               1  Key Comment: number of data axes
     34Key Name:   BITPIX  Key Type:  2  Key Value:             -64  Key Comment: number of bits per data pixel
    2435Key Name: XTENSION  Key Type:  5  Key Value:      'IMAGE   '  Key Comment: IMAGE extension
    25 Key Name:   BITPIX  Key Type:  2  Key Value:             -64  Key Comment: number of bits per data pixel
    26 Key Name:    NAXIS  Key Type:  2  Key Value:               1  Key Comment: number of data axes
    27 Key Name:   NAXIS1  Key Type:  2  Key Value:              64  Key Comment: length of data axis 1
    28 Key Name:   PCOUNT  Key Type:  2  Key Value:               0  Key Comment: required keyword; must = 0
    29 Key Name:   GCOUNT  Key Type:  2  Key Value:               1  Key Comment: required keyword; must = 1
    30 Key Name:   BITPIX  Key Type:  2  Key Value:             -64  Key Comment: number of bits per data pixel
    31 Key Name:  EXTNAME  Key Type:  5  Key Value:     'MY_DATA_1'  Key Comment:
    32 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    33 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    34 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    35 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    3636
    3737---> TESTPOINT PASSED (psMetadata{Test B - Read 2nd hdr from complex FITS file} | tst_psMetadata_01.c)
     
    4545FITS file open status: OK - no error
    4646
    47 Key Name: XTENSION  Key Type:  5  Key Value:      'IMAGE   '  Key Comment: IMAGE extension
     47Key Name:  COMMENT  Key Type:  5  Key Value:                  Key Comment:   and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H
     48Key Name:  COMMENT  Key Type:  5  Key Value:                  Key Comment:   FITS (Flexible Image Transport System) format is defined in 'Astronomy
     49Key Name:   EXTEND  Key Type:  1  Key Value:               1  Key Comment: FITS dataset may contain extensions
     50Key Name:   NAXIS1  Key Type:  2  Key Value:              64  Key Comment: length of data axis 1
     51Key Name:    NAXIS  Key Type:  2  Key Value:               1  Key Comment: number of data axes
    4852Key Name:   BITPIX  Key Type:  2  Key Value:             -64  Key Comment: number of bits per data pixel
    49 Key Name:    NAXIS  Key Type:  2  Key Value:               1  Key Comment: number of data axes
    50 Key Name:   NAXIS1  Key Type:  2  Key Value:              64  Key Comment: length of data axis 1
    51 Key Name:   PCOUNT  Key Type:  2  Key Value:               0  Key Comment: required keyword; must = 0
    52 Key Name:   GCOUNT  Key Type:  2  Key Value:               1  Key Comment: required keyword; must = 1
    53 Key Name:  EXTNAME  Key Type:  5  Key Value:     'MY_DATA_2'  Key Comment:
    54 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
    55 Key Name:  HISTORY  Key Type:  5  Key Value:                  Key Comment: File modified by user 'harman' with fv  on 2004-08-04T <DATE>
     53Key Name:   SIMPLE  Key Type:  1  Key Value:               1  Key Comment: file does conform to FITS standard
    5654
    5755---> TESTPOINT PASSED (psMetadata{Test C - Read named hdr from complex FITS file} | tst_psMetadata_01.c)
  • trunk/psLib/test/astronomy/verified/tst_psMetadata_02.stderr

    r1402 r1404  
    1  <DATE> <TIME> |<HOST>|E|psMetadataItemA|Null value for name not allowed
    2  <DATE> <TIME> |<HOST>|E|psMetadataItemA|Invalid psMetadataType: 6
    3  <DATE> <TIME> |<HOST>|E|psMetadataAddIt|Null metadata collection not allowed
    4  <DATE> <TIME> |<HOST>|E|psMetadataAddIt|Null metadata item not allowed
    5  <DATE> <TIME> |<HOST>|E|psMetadataAddIt|Metadata already exists in metadata collection. Item not added. Name: myItem2
     1<DATE><TIME>|<HOST>|E|psMetadataItemA|Null value for string not allowed
     2<DATE><TIME>|<HOST>|E|psMetadataItemA|Invalid psMetadataType: 6
     3<DATE><TIME>|<HOST>|E|psMetadataAddIt|Null metadata collection not allowed
     4<DATE><TIME>|<HOST>|E|psMetadataAddIt|Null metadata item not allowed
     5<DATE><TIME>|<HOST>|E|psMetadataAddIt|Metadata already exists in metadata collection. Item not added. Name: myItem2
  • trunk/psLib/test/collections/verified/tst_psBitSet_01.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|   psBitSetTest| : Line 151 - Bit position too small: -4
    2  <DATE> <TIME> |<HOST>|E|   psBitSetTest| : Line 154 - Bit position too large: 200
    3  <DATE> <TIME> |<HOST>|E|   psBitSetTest| : Line 148 - Null psBitSet for inBitSet argument
    4  <DATE> <TIME> |<HOST>|E|    psBitSetSet| : Line 129 - Bit position too small: -4
    5  <DATE> <TIME> |<HOST>|E|    psBitSetSet| : Line 132 - Bit position too large: 200
    6  <DATE> <TIME> |<HOST>|E|    psBitSetSet| : Line 126 - Null psBitSet for inBitSet argument
     1<DATE><TIME>|<HOST>|E|   psBitSetTest| : Line <LINENO> - Bit position too small: -4
     2<DATE><TIME>|<HOST>|E|   psBitSetTest| : Line <LINENO> - Bit position too large: 200
     3<DATE><TIME>|<HOST>|E|   psBitSetTest| : Line <LINENO> - Null psBitSet for inBitSet argument
     4<DATE><TIME>|<HOST>|E|    psBitSetSet| : Line <LINENO> - Bit position too small: -4
     5<DATE><TIME>|<HOST>|E|    psBitSetSet| : Line <LINENO> - Bit position too large: 200
     6<DATE><TIME>|<HOST>|E|    psBitSetSet| : Line <LINENO> - Null psBitSet for inBitSet argument
  • trunk/psLib/test/collections/verified/tst_psBitSet_05.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|     psBitSetOp| : Line 197 - psBitSet sizes not the same
     1<DATE><TIME>|<HOST>|E|     psBitSetOp| : Line <LINENO> - psBitSet sizes not the same
  • trunk/psLib/test/collections/verified/tst_psBitSet_06.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|     psBitSetOp| : Line 224 - Invalid psBitMask binary operation: ZZXOR
    2  <DATE> <TIME> |<HOST>|E|  psBitSetAlloc| : Line 88 - Allocation size must be > 0: size = -4
     1<DATE><TIME>|<HOST>|E|     psBitSetOp| : Line <LINENO> - Invalid psBitMask binary operation: ZZXOR
     2<DATE><TIME>|<HOST>|E|  psBitSetAlloc| : Line <LINENO> - Allocation size must be > 0: size = -4
  • trunk/psLib/test/collections/verified/tst_psBitSet_08.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|    psBitSetNot| : Line 238 - Null psBitSet for inBitSet argument
     1<DATE><TIME>|<HOST>|E|    psBitSetNot| : Line <LINENO> - Null psBitSet for inBitSet argument
  • trunk/psLib/test/collections/verified/tst_psList.stderr

    r1198 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|I|  testListAlloc|psListAlloc shall create a psList with either 0 or 1 element.
     7<DATE><TIME>|<HOST>|I|  testListAlloc|psListAlloc shall create a psList with either 0 or 1 element.
    88
    99---> TESTPOINT PASSED (psList{psListAlloc} | tst_psList.c)
     
    1515\**********************************************************************************/
    1616
    17  <DATE> <TIME> |<HOST>|I|    testListAdd|psListAdd shall add an element to list
    18  <DATE> <TIME> |<HOST>|I|    testListAdd|Following should error with invalid insert location
    19  <DATE> <TIME> |<HOST>|W|      psListAdd|The given insert location (-10) for psListAdd is invalid.
    20  <DATE> <TIME> |<HOST>|I|    testListAdd|Following should be a warning.
    21  <DATE> <TIME> |<HOST>|W|      psListAdd|Invalid index 9 (only 6 elements in psList); assuming tail.
     17<DATE><TIME>|<HOST>|I|    testListAdd|psListAdd shall add an element to list
     18<DATE><TIME>|<HOST>|I|    testListAdd|Following should error with invalid insert location
     19<DATE><TIME>|<HOST>|W|      psListAdd|The given insert location (-10) for psListAdd is invalid.
     20<DATE><TIME>|<HOST>|I|    testListAdd|Following should be a warning.
     21<DATE><TIME>|<HOST>|W|      psListAdd|Invalid index 9 (only 6 elements in psList); assuming tail.
    2222
    2323---> TESTPOINT PASSED (psList{psListAdd} | tst_psList.c)
     
    2929\**********************************************************************************/
    3030
    31  <DATE> <TIME> |<HOST>|I|    testListGet|Following should be an error
    32  <DATE> <TIME> |<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:259).
     31<DATE><TIME>|<HOST>|I|    testListGet|Following should be an error
     32<DATE><TIME>|<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:<LINENO>).
    3333
    3434---> TESTPOINT PASSED (psList{psListGet} | tst_psList.c)
     
    4040\**********************************************************************************/
    4141
    42  <DATE> <TIME> |<HOST>|I| testListRemove|Following should be an error
    43  <DATE> <TIME> |<HOST>|E|   psListRemove|list parameter found to be NULL in psListRemove
    44  <DATE> <TIME> |<HOST>|I| testListRemove|Next message should be an error
    45  <DATE> <TIME> |<HOST>|E|   psListRemove|Couldn't position to given index (-4) to remove element from list.
    46  <DATE> <TIME> |<HOST>|I| testListRemove|Next message should be an error
    47  <DATE> <TIME> |<HOST>|E|   psListRemove|Couldn't position to given index (-2) to remove element from list.
    48  <DATE> <TIME> |<HOST>|I| testListRemove|Next message should be an error
    49  <DATE> <TIME> |<HOST>|E|   psListRemove|Failed to find item in given psList.
    50  <DATE> <TIME> |<HOST>|I| testListRemove|Next message should be an error
    51  <DATE> <TIME> |<HOST>|E|   psListRemove|Failed to find item in given psList.
     42<DATE><TIME>|<HOST>|I| testListRemove|Following should be an error
     43<DATE><TIME>|<HOST>|E|   psListRemove|list parameter found to be NULL in psListRemove
     44<DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error
     45<DATE><TIME>|<HOST>|E|   psListRemove|Couldn't position to given index (-4) to remove element from list.
     46<DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error
     47<DATE><TIME>|<HOST>|E|   psListRemove|Couldn't position to given index (-2) to remove element from list.
     48<DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error
     49<DATE><TIME>|<HOST>|E|   psListRemove|Failed to find item in given psList.
     50<DATE><TIME>|<HOST>|I| testListRemove|Next message should be an error
     51<DATE><TIME>|<HOST>|E|   psListRemove|Failed to find item in given psList.
    5252
    5353---> TESTPOINT PASSED (psList{psListRemove} | tst_psList.c)
     
    6868\**********************************************************************************/
    6969
    70  <DATE> <TIME> |<HOST>|I|testListIterato| psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location
    71  <DATE> <TIME> |<HOST>|I|testListIterato|Following should error with 'Unexpected null pointer'
    72  <DATE> <TIME> |<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:259).
    73  <DATE> <TIME> |<HOST>|I|testListIterato|Following should error with 'Can't move to an unknown position.'
    74  <DATE> <TIME> |<HOST>|E|listSetIterator|Can't move to an unknown position.  Not moving the iterator position.
     70<DATE><TIME>|<HOST>|I|testListIterato| psListSetIterator/psListGetNext/psListGetPrev shall move the list cursor to the specified location
     71<DATE><TIME>|<HOST>|I|testListIterato|Following should error with 'Unexpected null pointer'
     72<DATE><TIME>|<HOST>|E|listSetIterator|Unexpected null pointer for psList parameter (psList.c:<LINENO>).
     73<DATE><TIME>|<HOST>|I|testListIterato|Following should error with 'Can't move to an unknown position.'
     74<DATE><TIME>|<HOST>|E|listSetIterator|Can't move to an unknown position.  Not moving the iterator position.
    7575
    7676---> TESTPOINT PASSED (psList{psListIterator} | tst_psList.c)
  • trunk/psLib/test/collections/verified/tst_psVector.stderr

    r1227 r1404  
    1  <DATE> <TIME> |<HOST>|I|           main|Following should be an error message.
    2  <DATE> <TIME> |<HOST>|E|  psVectorAlloc|Invalid value for nalloc. nalloc: 0
    3  <DATE> <TIME> |<HOST>|I|           main|Following should be an error message.
    4  <DATE> <TIME> |<HOST>|E|psVectorRealloc|Null input vector
     1<DATE><TIME>|<HOST>|I|           main|Following should be an error message.
     2<DATE><TIME>|<HOST>|E|  psVectorAlloc|Invalid value for nalloc. nalloc: 0
     3<DATE><TIME>|<HOST>|I|           main|Following should be an error message.
     4<DATE><TIME>|<HOST>|E|psVectorRealloc|Null input vector
  • trunk/psLib/test/collections/verified/tst_psVectorSort_03.stderr

    r1303 r1404  
    1  <DATE> <TIME> |<HOST>|E|   psVectorSort| : Line 178 - Input and output vector sizes are not equal: in=5 out=6
    2  <DATE> <TIME> |<HOST>|E|   psVectorSort| : Line 184 - Input and output vectors are not same type: in=1028 out=1032
     1<DATE><TIME>|<HOST>|E|   psVectorSort| : Line <LINENO> - Input and output vector sizes are not equal: in=5 out=6
     2<DATE><TIME>|<HOST>|E|   psVectorSort| : Line <LINENO> - Input and output vectors are not same type: in=1028 out=1032
  • trunk/psLib/test/collections/verified/tst_psVectorSort_04.stderr

    r1233 r1404  
    1  <DATE> <TIME> |<HOST>|E|   psVectorSort| : Line 160 - Null input vector
     1<DATE><TIME>|<HOST>|E|   psVectorSort| : Line <LINENO> - Null input vector
  • trunk/psLib/test/dataManip/tst_psVectorFFT.c

    r1365 r1404  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-08-02 19:43:23 $
     8*  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-06 21:50:13 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121img = psImageAlloc(c,r,PS_TYPE_##TYP); \
    2222for (unsigned int row=0;row<r;row++) { \
    23         ps##TYP* imgRow = img->data.TYP[row]; \
    24         for (unsigned int col=0;col<c;col++) { \
    25                 imgRow[col] = (ps##TYP)(valueFcn); \
    26             } \
    27     }
    28    
     23    ps##TYP* imgRow = img->data.TYP[row]; \
     24    for (unsigned int col=0;col<c;col++) { \
     25        imgRow[col] = (ps##TYP)(valueFcn); \
     26    } \
     27}
     28
    2929static int testVectorFFT( void );
    3030static int testVectorRealImaginary( void );
     
    5353                              }
    5454                          };
    55                          
     55
    5656int main( int argc, char* argv[] )
    5757{
    5858    psLogSetLevel( PS_LOG_INFO );
    59    
     59
    6060    return ( ! runTestSuite( stderr, "psFFT", tests, argc, argv ) );
    6161}
     
    6666    psVector* vec2 = NULL;
    6767    psVector* vec3 = NULL;
    68    
     68
    6969    /*
    7070    1. assign a vector to a sinisoid
     
    7474    5. compare to original (should be equal to within a reasonable error)
    7575    */
    76    
     76
    7777    // 1. assign a vector to a sinisoid
    7878    vec = psVectorAlloc( 100, PS_TYPE_F32 );
    7979    vec->n = vec->nalloc;
    8080    for ( unsigned int n = 0; n < 100; n++ ) {
    81             vec->data.F32[ n ] = sinf( ( psF32 ) n / 50.0f * M_PI );
    82         }
    83        
     81        vec->data.F32[ n ] = sinf( ( psF32 ) n / 50.0f * M_PI );
     82    }
     83
    8484    // 2. perform a forward transform
    8585    vec2 = psVectorFFT( NULL, vec, PS_FFT_FORWARD );
    8686    if ( vec2->type.type != PS_TYPE_C32 ) {
    87             psError( __func__, "FFT didn't produce complex values?" );
    88             return 1;
     87        psError( __func__, "FFT didn't produce complex values?" );
     88        return 1;
     89    }
     90
     91
     92    // 3. verify that the only significant component cooresponds to the freqency of the input in step 1.
     93    for ( unsigned int n = 0; n < 100; n++ ) {
     94        if ( n == 1 || n == 99 ) {
     95            if ( fabsf( cabsf( vec2->data.C32[ n ] ) - 50.0f ) > 0.1f ) {
     96                psError( __func__, "FFT didn't work for vector (n=%d)", n );
     97                return 2;
     98            }
     99        } else {
     100            if ( fabsf( cabsf( vec2->data.C32[ n ] ) ) > 0.1f ) {
     101                psError( __func__, "FFT didn't work for vector (n=%d)", n );
     102                return 3;
     103            }
    89104        }
    90        
    91        
    92     // 3. verify that the only significant component cooresponds to the freqency of the input in step 1.
    93     for ( unsigned int n = 0; n < 100; n++ ) {
    94             if ( n == 1 || n == 99 ) {
    95                     if ( fabsf( cabsf( vec2->data.C32[ n ] ) - 50.0f ) > 0.1f ) {
    96                             psError( __func__, "FFT didn't work for vector (n=%d)", n );
    97                             return 2;
    98                         }
    99                 } else {
    100                     if ( fabsf( cabsf( vec2->data.C32[ n ] ) ) > 0.1f ) {
    101                             psError( __func__, "FFT didn't work for vector (n=%d)", n );
    102                             return 3;
    103                         }
    104                 }
    105         }
    106        
     105    }
     106
    107107    // 4. perform a reverse transform
    108108    vec3 = psVectorFFT( NULL, vec2, PS_FFT_REVERSE );
    109109    if ( vec3->type.type != PS_TYPE_C32 ) {
    110             psError( __func__, "FFT didn't produce complex values?" );
    111             return 4;
     110        psError( __func__, "FFT didn't produce complex values?" );
     111        return 4;
     112    }
     113    for ( unsigned int n = 0; n < 100; n++ ) {
     114        psF32 val = sinf( ( psF32 ) n / 50.0f * M_PI );
     115        psF32 vecVal = crealf( vec3->data.C32[ n ] ) / 100;
     116        if ( fabsf( vecVal - val ) > 0.1f ) {
     117            psError( __func__, "Reverse FFT didn't give me the original vector back (n=%d) (%.2f vs %.2f)",
     118                     n, vecVal, val );
     119            return 5;
    112120        }
    113     for ( unsigned int n = 0; n < 100; n++ ) {
    114             psF32 val = sinf( ( psF32 ) n / 50.0f * M_PI );
    115             psF32 vecVal = crealf( vec3->data.C32[ n ] ) / 100;
    116             if ( fabsf( vecVal - val ) > 0.1f ) {
    117                     psError( __func__, "Reverse FFT didn't give me the original vector back (n=%d) (%.2f vs %.2f)",
    118                              n, vecVal, val );
    119                     return 5;
    120                 }
    121         }
    122        
     121    }
     122
    123123    psFree( vec );
    124124    psFree( vec2 );
    125125    psFree( vec3 );
    126    
     126
    127127    return 0;
    128128}
     
    133133    psVector* vec2 = NULL;
    134134    psVector* vec3 = NULL;
    135    
     135
    136136    /*
    137137    1. create a C32 complex vector with distinctly different real and imaginary parts.
     
    139139    3. compare results to the real/imaginary components of input
    140140    */
    141    
     141
    142142    // 1. create a C32 complex vector with distinctly different real and imaginary parts.
    143143    vec = psVectorAlloc( 100, PS_TYPE_C32 );
    144144    vec->n = vec->nalloc;
    145145    for ( unsigned int n = 0; n < 100; n++ ) {
    146             vec->data.C32[ n ] = n + I * ( n * 2 );
    147         }
    148        
     146        vec->data.C32[ n ] = n + I * ( n * 2 );
     147    }
     148
    149149    // 2. call psVectorReal and psVectorImaginary
    150150    vec2 = psVectorReal( vec2, vec );
    151151    if ( vec2 == NULL ) {
    152             psError( __func__, "psVectorReal returned a NULL?" );
    153             return 1;
    154         }
     152        psError( __func__, "psVectorReal returned a NULL?" );
     153        return 1;
     154    }
    155155    if ( vec2->type.type != PS_TYPE_F32 ) {
    156             psError( __func__, "psVectorReal returned a wrong type (%d)?",
    157                      vec2->type.type );
    158             return 2;
    159         }
    160        
     156        psError( __func__, "psVectorReal returned a wrong type (%d)?",
     157                 vec2->type.type );
     158        return 2;
     159    }
     160
    161161    vec3 = psVectorImaginary( vec3, vec );
    162162    if ( vec3 == NULL ) {
    163             psError( __func__, "psVectorImaginary returned a NULL?" );
    164             return 3;
     163        psError( __func__, "psVectorImaginary returned a NULL?" );
     164        return 3;
     165    }
     166    if ( vec3->type.type != PS_TYPE_F32 ) {
     167        psError( __func__, "psVectorImaginary returned a wrong type (%d)?",
     168                 vec3->type.type );
     169        return 4;
     170    }
     171
     172    // 3. compare results to the real/imaginary components of input
     173    for ( unsigned int n = 0; n < 100; n++ ) {
     174        psF32 r = n;
     175        psF32 i = ( n * 2 );
     176        if ( fabsf( vec2->data.F32[ n ] - r ) > FLT_EPSILON ) {
     177            psError( __func__, "psVectorReal didn't return the real portion at n=%d",
     178                     n );
     179            return 5;
    165180        }
    166     if ( vec3->type.type != PS_TYPE_F32 ) {
    167             psError( __func__, "psVectorImaginary returned a wrong type (%d)?",
    168                      vec3->type.type );
    169             return 4;
     181        if ( fabsf( vec3->data.F32[ n ] - i ) > FLT_EPSILON ) {
     182            psError( __func__, "psVectorImaginary didn't return the real portion at n=%d",
     183                     n );
     184            return 6;
    170185        }
    171        
    172     // 3. compare results to the real/imaginary components of input
    173     for ( unsigned int n = 0; n < 100; n++ ) {
    174             psF32 r = n;
    175             psF32 i = ( n * 2 );
    176             if ( fabsf( vec2->data.F32[ n ] - r ) > FLT_EPSILON ) {
    177                     psError( __func__, "psVectorReal didn't return the real portion at n=%d",
    178                              n );
    179                     return 5;
    180                 }
    181             if ( fabsf( vec3->data.F32[ n ] - i ) > FLT_EPSILON ) {
    182                     psError( __func__, "psVectorImaginary didn't return the real portion at n=%d",
    183                              n );
    184                     return 6;
    185                 }
    186         }
    187        
     186    }
     187
    188188    psFree( vec );
    189189    psFree( vec2 );
    190190    psFree( vec3 );
    191    
     191
    192192    return 0;
    193193}
     
    198198    psVector* vec2 = NULL;
    199199    psVector* vec3 = NULL;
    200    
     200
    201201    /*
    202202    1. create two unique psF32 vectors of the same size
     
    205205    4. call psVectorReal and psVectorImaginary on step 2 results
    206206    5. compare step 4 results to input.
    207    
     207
    208208    6. create a psF32 and a psF64 vector of the same size
    209209    7. call psVectorComplex
    210210    8. verify that an appropriate error occurred.
    211    
     211
    212212    9. create two psf32 vectors of different sizes
    213213    10. call psVectorComplex
    214214    11. verify thet an appropriate error occurred.
    215215    */
    216    
     216
    217217    // 1. create two unique psF32 vectors of the same size
    218218    vec = psVectorAlloc( 100, PS_TYPE_F32 );
     
    221221    vec2->n = vec2->nalloc;
    222222    for ( unsigned int n = 0; n < 100; n++ ) {
    223             vec->data.F32[ n ] = n;
    224             vec2->data.F32[ n ] = ( n * 2 );
    225         }
    226        
     223        vec->data.F32[ n ] = n;
     224        vec2->data.F32[ n ] = ( n * 2 );
     225    }
     226
    227227    // 2. call psVectorComplex
    228228    vec3 = psVectorComplex( vec3, vec, vec2 );
    229    
     229
    230230    // 3. verify that the result is a psC32
    231231    if ( vec3->type.type != PS_TYPE_C32 ) {
    232             psError( __func__, "Vector Type from psVectorComplex is not complex? (%d)",
    233                      vec3->type.type );
    234             return 1;
    235         }
    236        
     232        psError( __func__, "Vector Type from psVectorComplex is not complex? (%d)",
     233                 vec3->type.type );
     234        return 1;
     235    }
     236
    237237    // 4. call psVectorReal and psVectorImaginary on step 2 results (not needed, just use crealf/cimagf)
    238238    // 5. compare step 4 results to input.
    239239    for ( unsigned int n = 0; n < 100; n++ ) {
    240             if ( fabsf( crealf( vec3->data.C32[ n ] ) - n ) > FLT_EPSILON ||
    241                     fabsf( cimagf( vec3->data.C32[ n ] ) - ( n * 2 ) ) > FLT_EPSILON ) {
    242                     psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",
    243                              n, crealf( vec3->data.C32[ n ] ), cimagf( vec3->data.C32[ n ] ) );
    244                     return 2;
    245                 };
    246         }
    247        
    248        
     240        if ( fabsf( crealf( vec3->data.C32[ n ] ) - n ) > FLT_EPSILON ||
     241                fabsf( cimagf( vec3->data.C32[ n ] ) - ( n * 2 ) ) > FLT_EPSILON ) {
     242            psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",
     243                     n, crealf( vec3->data.C32[ n ] ), cimagf( vec3->data.C32[ n ] ) );
     244            return 2;
     245        };
     246    }
     247
     248
    249249    // 6. create a psF32 and a psF64 vector of the same size
    250     vec2 = psVectorRecycle( vec2, PS_TYPE_F64, 100 );
    251    
     250    vec2 = psVectorRecycle( vec2, 100, PS_TYPE_F64 );
     251
    252252    // 7. call psVectorComplex
    253253    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error (type mismatch)." );
     
    255255    // 8. verify that an appropriate error occurred. (this partially has to be done via inspection)
    256256    if ( vec3 != NULL ) {
    257             psError( __func__, "psVectorComplex returned a vector though input types mismatched." );
    258             return 3;
    259         }
    260        
     257        psError( __func__, "psVectorComplex returned a vector though input types mismatched." );
     258        return 3;
     259    }
     260
    261261    // 9. create two psf32 vectors of different sizes
    262     vec2 = psVectorRecycle( vec2, PS_TYPE_F32, 200 );
    263    
     262    vec2 = psVectorRecycle( vec2, 200, PS_TYPE_F32 );
     263
    264264    // 10. call psVectorComplex
    265265    vec3 = psVectorComplex( vec3, vec, vec2 );
    266    
     266
    267267    // 11. verify thet an appropriate error occurred. (actually, it isn't an error...)
    268268    if ( vec3->n != 100 ) {
    269             psError( __func__, "psVectorComplex returned a larger vector than the input supported (%d).", vec3->n );
    270             return 4;
    271         }
    272        
     269        psError( __func__, "psVectorComplex returned a larger vector than the input supported (%d).", vec3->n );
     270        return 4;
     271    }
     272
    273273    psFree( vec );
    274274    psFree( vec2 );
    275275    psFree( vec3 );
    276    
     276
    277277    return 0;
    278278}
     
    282282    psVector * vec = NULL;
    283283    psVector* vec2 = NULL;
    284    
     284
    285285    /*
    286286    1. create a psC32 with unique real and imaginary values.
     
    289289    4. verify each value is conjugate of input (a+bi -> a-bi)
    290290    */
    291    
     291
    292292    // 1. create a psC32 with unique real and imaginary values.
    293293    vec = psVectorAlloc( 100, PS_TYPE_C32 );
    294294    vec->n = vec->nalloc;
    295295    for ( unsigned int n = 0; n < 100; n++ ) {
    296             vec->data.C32[ n ] = n + I * ( n * 2 );
    297         }
    298        
     296        vec->data.C32[ n ] = n + I * ( n * 2 );
     297    }
     298
    299299    // 2. call psVectorConjugate
    300300    vec2 = psVectorConjugate( vec2, vec );
    301    
     301
    302302    // 3. verify result is psC32
    303303    if ( vec2->type.type != PS_TYPE_C32 ) {
    304             psError( __func__, "the psVectorConjugate didn't return a C32 vector" );
    305             return 1;
    306         }
    307        
     304        psError( __func__, "the psVectorConjugate didn't return a C32 vector" );
     305        return 1;
     306    }
     307
    308308    // 4. verify each value is conjugate of input (a+bi -> a-bi)
    309309    for ( unsigned int n = 0; n < 100; n++ ) {
    310             if ( fabsf( crealf( vec->data.C32[ n ] ) - crealf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ||
    311                     fabsf( cimagf( vec->data.C32[ n ] ) + cimagf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ) {
    312                     psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",
    313                              n, crealf( vec2->data.C32[ n ] ), cimagf( vec2->data.C32[ n ] ) );
    314                     return 2;
    315                 };
    316         }
    317        
    318     psFree( vec );
    319     psFree( vec2 );
    320    
     310        if ( fabsf( crealf( vec->data.C32[ n ] ) - crealf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ||
     311                fabsf( cimagf( vec->data.C32[ n ] ) + cimagf( vec2->data.C32[ n ] ) ) > FLT_EPSILON ) {
     312            psError( __func__, "psVectorComplex result is invalid (n=%d, %.2f+%.2fi)",
     313                     n, crealf( vec2->data.C32[ n ] ), cimagf( vec2->data.C32[ n ] ) );
     314            return 2;
     315        };
     316    }
     317
     318    psFree( vec );
     319    psFree( vec2 );
     320
    321321    return 0;
    322322}
     
    327327    psVector* vec2 = NULL;
    328328    psF32 val;
    329    
     329
    330330    /*
    331331    1. create a psC32 vector with unique real and imaginary components
     
    334334    4. verify the values are the square of the absolute values of the original
    335335    */
    336    
     336
    337337    // 1. create a psC32 vector with unique real and imaginary components
    338338    vec = psVectorAlloc( 100, PS_TYPE_C32 );
    339339    vec->n = vec->nalloc;
    340340    for ( unsigned int n = 0; n < 100; n++ ) {
    341             vec->data.C32[ n ] = n + I * sinf( ( ( psF32 ) n ) / 50.f * M_PI );
    342         }
    343        
     341        vec->data.C32[ n ] = n + I * sinf( ( ( psF32 ) n ) / 50.f * M_PI );
     342    }
     343
    344344    // 2. call psVectorPowerSpectrum
    345345    vec2 = psVectorPowerSpectrum( vec2, vec );
    346    
     346
    347347    // 3. verify result is psF32
    348348    if ( vec2->type.type != PS_TYPE_F32 ) {
    349             psError( __func__, "the type was not PS_TYPE_F32." );
    350             return 1;
    351         }
    352        
     349        psError( __func__, "the type was not PS_TYPE_F32." );
     350        return 1;
     351    }
     352
    353353    // 4. verify the values are the square of the absolute values of the original
    354354    //   (ADD specifies something else)
     
    357357    //   P_N/2 = |C_N/2|^2/N^2
    358358    //  where j = 1,2,...,(N/2-1)
    359    
     359
    360360    val = cabsf( vec->data.C32[ 0 ] ) * cabsf( vec->data.C32[ 0 ] ) / 100 / 100;
    361361    if ( fabsf( vec2->data.F32[ 0 ] - val ) > FLT_EPSILON ) {
    362             psError( __func__, "psVectorPowerSpectrum result is invalid (n=0, %.2f %.2f)",
    363                      vec2->data.F32[ 0 ], val );
     362        psError( __func__, "psVectorPowerSpectrum result is invalid (n=0, %.2f %.2f)",
     363                 vec2->data.F32[ 0 ], val );
     364        return 2;
     365    };
     366
     367    for ( unsigned int n = 1; n < 50; n++ ) {
     368        val = ( cabsf( vec->data.C32[ n ] ) * cabsf( vec->data.C32[ n ] ) +
     369                cabsf( vec->data.C32[ 100 - n ] ) * cabsf( vec->data.C32[ 100 - n ] ) ) / 100 / 100;
     370
     371        if ( fabsf( val - vec2->data.F32[ n ] ) > FLT_EPSILON ) {
     372            psError( __func__, "psVectorPowerSpectrum result is invalid (n=%d, %.2f %.2f)",
     373                     n, vec2->data.F32[ n ], val );
    364374            return 2;
    365375        };
    366        
    367     for ( unsigned int n = 1; n < 50; n++ ) {
    368             val = ( cabsf( vec->data.C32[ n ] ) * cabsf( vec->data.C32[ n ] ) +
    369                     cabsf( vec->data.C32[ 100 - n ] ) * cabsf( vec->data.C32[ 100 - n ] ) ) / 100 / 100;
    370                    
    371             if ( fabsf( val - vec2->data.F32[ n ] ) > FLT_EPSILON ) {
    372                     psError( __func__, "psVectorPowerSpectrum result is invalid (n=%d, %.2f %.2f)",
    373                              n, vec2->data.F32[ n ], val );
    374                     return 2;
    375                 };
    376         }
    377        
     376    }
     377
    378378    val = cabsf( vec->data.C32[ 50 ] ) * cabsf( vec->data.C32[ 50 ] ) / 100 / 100;
    379379    if ( fabsf( vec2->data.F32[ 50 ] - val ) > FLT_EPSILON ) {
    380             psError( __func__, "psVectorPowerSpectrum result is invalid (n=50, %.2f %.2f)",
    381                      vec2->data.F32[ 0 ], val );
    382             return 2;
    383         };
    384        
    385     psFree( vec );
    386     psFree( vec2 );
    387    
    388     return 0;
    389 }
     380        psError( __func__, "psVectorPowerSpectrum result is invalid (n=50, %.2f %.2f)",
     381                 vec2->data.F32[ 0 ], val );
     382        return 2;
     383    };
     384
     385    psFree( vec );
     386    psFree( vec2 );
     387
     388    return 0;
     389}
  • trunk/psLib/test/dataManip/verified/tst_psMatrix02.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: Pointer to inImage is same as outImage.
    2  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: inImage or its data is NULL.
    3  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: inImage not PS_TYPE_F64.
    4  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: inImage not square array.
    5  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: outImage not PS_TYPE_F64.
    6  <DATE> <TIME> |<HOST>|E|psMatrixTranspo|Invalid operation: outImage not square array.
     1<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: Pointer to inImage is same as outImage.
     2<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage or its data is NULL.
     3<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not PS_TYPE_F64.
     4<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: inImage not square array.
     5<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not PS_TYPE_F64.
     6<DATE><TIME>|<HOST>|E|psMatrixTranspo|Invalid operation: outImage not square array.
  • trunk/psLib/test/dataManip/verified/tst_psMatrix03.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|    psMatrixLUD|Invalid operation: inImage or its data is NULL.
    2  <DATE> <TIME> |<HOST>|E|psMatrixLUSolve|Invalid operation: inVector or its data is NULL.
    3  <DATE> <TIME> |<HOST>|E|psMatrixLUSolve|Invalid operation: inImage or its data is NULL.
     1<DATE><TIME>|<HOST>|E|    psMatrixLUD|Invalid operation: inImage or its data is NULL.
     2<DATE><TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inVector or its data is NULL.
     3<DATE><TIME>|<HOST>|E|psMatrixLUSolve|Invalid operation: inImage or its data is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMatrix04.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E| psMatrixInvert|Invalid operation: inImage or its data is NULL.
    2  <DATE> <TIME> |<HOST>|E| psMatrixInvert|Invalid operation: determinant argument is NULL.
     1<DATE><TIME>|<HOST>|E| psMatrixInvert|Invalid operation: inImage or its data is NULL.
     2<DATE><TIME>|<HOST>|E| psMatrixInvert|Invalid operation: determinant argument is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMatrix07.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|E|psMatrixToVecto|Invalid operation: inImage or its data is NULL.
    2  <DATE> <TIME> |<HOST>|E|psMatrixToVecto|Image does not have dim with 1 col or 1 row: (2 x 2).
    3  <DATE> <TIME> |<HOST>|E|psVectorToMatri|Invalid operation: inVector or its data is NULL.
     1<DATE><TIME>|<HOST>|E|psMatrixToVecto|Invalid operation: inImage or its data is NULL.
     2<DATE><TIME>|<HOST>|E|psMatrixToVecto|Image does not have dim with 1 col or 1 row: (2 x 2).
     3<DATE><TIME>|<HOST>|E|psVectorToMatri|Invalid operation: inVector or its data is NULL.
  • trunk/psLib/test/dataManip/verified/tst_psMatrixVectorArithmetic02.stdout

    r1403 r1404  
    664664
    665665Output:
    666 2.51+0.00i 2.51+0.00i
    667 2.51+0.00i 2.51+0.00i
    668 2.51+0.00i 2.51+0.00i
     6662.51-0.00i 2.51-0.00i
     6672.51-0.00i 2.51-0.00i
     6682.51-0.00i 2.51-0.00i
    669669
    670670
     
    11681168
    11691169Output:
    1170 89 89
    1171 89 89
    1172 89 89
     117090 90
     117190 90
     117290 90
    11731173
    11741174
     
    13601360
    13611361Output:
    1362 89 89
    1363 89 89
    1364 89 89
     136290 90
     136390 90
     136490 90
    13651365
    13661366
     
    22962296
    22972297Output:
    2298 2.51+0.00i
    2299 2.51+0.00i
    2300 2.51+0.00i
     22982.51-0.00i
     22992.51-0.00i
     23002.51-0.00i
    23012301
    23022302
     
    28002800
    28012801Output:
    2802 89
    2803 89
    2804 89
     280290
     280390
     280490
    28052805
    28062806
     
    29922992
    29932993Output:
    2994 89
    2995 89
    2996 89
     299490
     299590
     299690
    29972997
    29982998
  • trunk/psLib/test/dataManip/verified/tst_psMatrixVectorArithmetic03.stderr

    r1403 r1404  
    1  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Line 403 - Null out argument
    2  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Line 409 - Null in1 argument
    3  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Line 415 - Null in2 argument
    4  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Line 420 - Null op argument
    5  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Line 718 - Null out argument
    6  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Line 724 - Null in argument
    7  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Line 729 - Null op argument
    8  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Line 432 - Element types for arguments inconsistent: (1028, 1032, 1032)
    9  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Line 739 - Element types for arguments inconsistent: (1028, 1032)
    10  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3
    11  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3
    12  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Inconsistent element count: 2 vs 3
    13  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Inconsistent element count: 2 vs 3
    14  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Line 745 - Dimensionality for arguments inconsistent: (1, 3)
    15  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    16  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    17  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    18  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    19  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    20  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    21  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    22  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    23  <DATE> <TIME> |<HOST>|E|       psNanDiv|: Divide by zero
    24  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Minimum operation not supported for complex numbers
    25  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Maximum operation not supported for complex numbers
    26  <DATE> <TIME> |<HOST>|E|     psBinaryOp|: Invalid operation: yarg
    27  <DATE> <TIME> |<HOST>|E|      psUnaryOp|: Invalid operation: yarg
     1<DATE><TIME>|<HOST>|E|     psBinaryOp|: Line <LINENO> - Null out argument
     2<DATE><TIME>|<HOST>|E|     psBinaryOp|: Line <LINENO> - Null in1 argument
     3<DATE><TIME>|<HOST>|E|     psBinaryOp|: Line <LINENO> - Null in2 argument
     4<DATE><TIME>|<HOST>|E|     psBinaryOp|: Line <LINENO> - Null op argument
     5<DATE><TIME>|<HOST>|E|      psUnaryOp|: Line <LINENO> - Null out argument
     6<DATE><TIME>|<HOST>|E|      psUnaryOp|: Line <LINENO> - Null in argument
     7<DATE><TIME>|<HOST>|E|      psUnaryOp|: Line <LINENO> - Null op argument
     8<DATE><TIME>|<HOST>|E|     psBinaryOp|: Line <LINENO> - Element types for arguments inconsistent: (1028, 1032, 1032)
     9<DATE><TIME>|<HOST>|E|      psUnaryOp|: Line <LINENO> - Element types for arguments inconsistent: (1028, 1032)
     10<DATE><TIME>|<HOST>|E|     psBinaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3
     11<DATE><TIME>|<HOST>|E|      psUnaryOp|: Inconsistent element count: numRows: 2 vs 3 numCols: 2 vs 3
     12<DATE><TIME>|<HOST>|E|     psBinaryOp|: Inconsistent element count: 2 vs 3
     13<DATE><TIME>|<HOST>|E|     psBinaryOp|: Inconsistent element count: 2 vs 3
     14<DATE><TIME>|<HOST>|E|      psUnaryOp|: Line <LINENO> - Dimensionality for arguments inconsistent: (1, 3)
     15<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     16<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     17<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     18<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     19<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     20<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     21<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     22<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     23<DATE><TIME>|<HOST>|E|       psNanDiv|: Divide by zero
     24<DATE><TIME>|<HOST>|E|     psBinaryOp|: Minimum operation not supported for complex numbers
     25<DATE><TIME>|<HOST>|E|     psBinaryOp|: Maximum operation not supported for complex numbers
     26<DATE><TIME>|<HOST>|E|     psBinaryOp|: Invalid operation: yarg
     27<DATE><TIME>|<HOST>|E|      psUnaryOp|: Invalid operation: yarg
  • trunk/psLib/test/dataManip/verified/tst_psVectorFFT.stderr

    r1221 r1404  
    2323\**********************************************************************************/
    2424
    25  <DATE> <TIME> |<HOST>|I|testVectorCompl|Following should be an error (type mismatch).
    26  <DATE> <TIME> |<HOST>|E|psVectorComplex|The inputs to psVectorComplex must be the same type.
     25<DATE><TIME>|<HOST>|I|testVectorCompl|Following should be an error (type mismatch).
     26<DATE><TIME>|<HOST>|E|psVectorComplex|The inputs to psVectorComplex must be the same type.
    2727
    2828---> TESTPOINT PASSED (psFFT{psVectorComplex} | tst_psVectorFFT.c)
  • trunk/psLib/test/image/tst_psImageExtraction.c

    r1364 r1404  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-08-02 18:30:10 $
     8*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-08-06 21:50:14 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727                              }
    2828                          };
    29                          
     29
    3030int main( int argc, char* argv[] )
    3131{
     
    4141    psVector* out = NULL;
    4242    psImage* image = psImageAlloc( c, r, PS_TYPE_F32 );
     43    psVector* positions = psVectorAlloc( r, PS_TYPE_U32 );
    4344    psImage* mask = psImageAlloc( c, r, PS_TYPE_MASK );
    4445    psStats* stat = psStatsAlloc( PS_STAT_SAMPLE_MEDIAN );
    45    
     46
    4647    /*
    4748        This function shall extract pixels from a specified region of a psImage
    4849        structure into a vector using a specified statistical method.
    49    
     50
    5051        Verify the returned psVector structure contains expected data, if the
    5152        input psImage input has known data and the psStats structure specifies
     
    5758     
    5859     */
    59    
     60
    6061    for ( int row = 0;row < r;row++ ) {
    61             psF32* imageRow = image->data.F32[ row ];
    62             psMaskType* maskRow = image->data.V[ row ];
    63             psF32 rowOffset = ( psF32 ) row / ( psF32 ) r;
    64             for ( int col = 0;col < c;col++ ) {
    65                     imageRow[ col ] = ( psF32 ) col + rowOffset;
    66                     maskRow[ col ] = 0;
    67                 }
     62        psF32* imageRow = image->data.F32[ row ];
     63        psMaskType* maskRow = image->data.V[ row ];
     64        psF32 rowOffset = ( psF32 ) row / ( psF32 ) r;
     65        for ( int col = 0;col < c;col++ ) {
     66            imageRow[ col ] = ( psF32 ) col + rowOffset;
     67            maskRow[ col ] = 0;
    6868        }
    69        
     69    }
     70
    7071    // test MxN case
    71    
     72
    7273    #define PSIMAGESLICE_TEST1(M,N,DIRECTION,TRUTH_SIZE,TRUTHPIX_X,TRUTHPIX_Y,TESTNUM) \
    73     out = psImageSlice(out,image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \
     74    out = psImageSlice(out,positions,image,mask,1,c/10,r/10,M,N,DIRECTION,stat); \
    7475    \
    7576    if (out->n != TRUTH_SIZE) { \
    76             psError(__func__,"Number of results is wrong (%d, not %d)", \
    77                     out->n,n); \
    78             return TESTNUM*2+1; \
    79         } \
     77        psError(__func__,"Number of results is wrong (%d, not %d)", \
     78                out->n,n); \
     79        return TESTNUM*4+1; \
     80    } \
     81    \
     82    if (positions->n != TRUTH_SIZE) { \
     83        psError(__func__,"Number of results for positions vector is wrong (%d, not %d)", \
     84                out->n,n); \
     85        return TESTNUM*4+2; \
     86    } \
    8087    \
    8188    for (int i=0;i<out->n;i++) { \
    82             if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \
    83                     psError(__func__,"Improper result at position %d.",i); \
    84                     return TESTNUM*2+2; \
    85                 } \
    86         }
    87        
     89        if (abs(out->data.F64[i]-image->data.F32[r/10+TRUTHPIX_Y][c/10+TRUTHPIX_X]) > 1.0/(psF32)r) { \
     90            psError(__func__,"Improper result at position %d.",i); \
     91            return TESTNUM*4+3; \
     92        } \
     93        if (DIRECTION == PS_CUT_X_POS || DIRECTION == PS_CUT_X_NEG) { \
     94            if (positions->data.U32[i] != c/10+TRUTHPIX_X) { \
     95                psError(__func__,"Improper postions result @ %d.",i); \
     96                return TESTNUM*4+4; \
     97            } \
     98        } else { \
     99            if (positions->data.U32[i] != r/10+TRUTHPIX_Y) { \
     100                psError(__func__,"Improper postions result @ %d.",i); \
     101                return TESTNUM*4+4; \
     102            } \
     103        } \
     104    }
     105
    88106    // test MxN case
    89107    PSIMAGESLICE_TEST1( m, n, PS_CUT_X_POS, m, i, n / 2, 0 );
     
    91109    PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_POS, n, m / 2, i, 2 );
    92110    PSIMAGESLICE_TEST1( m, n, PS_CUT_Y_NEG, n, m / 2, n - 1 - i, 3 );
    93    
     111
    94112    // test Mx1 case
    95113    PSIMAGESLICE_TEST1( m, 1, PS_CUT_X_POS, m, i, 0, 4 );
     
    97115    PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_POS, 1, m / 2, 0, 6 );
    98116    PSIMAGESLICE_TEST1( m, 1, PS_CUT_Y_NEG, 1, m / 2, 0, 7 );
    99    
     117
    100118    // test 1xN case
    101119    PSIMAGESLICE_TEST1( 1, n, PS_CUT_X_POS, 1, 0, n / 2, 8 );
     
    103121    PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_POS, n, 0, n - 1 - i, 10 );
    104122    PSIMAGESLICE_TEST1( 1, n, PS_CUT_Y_NEG, n, 0, n - 1 - i, 11 );
    105    
     123
    106124    // test 1x1 case
    107125    PSIMAGESLICE_TEST1( 1, 1, PS_CUT_X_POS, 1, 0, 0, 12 );
     
    109127    PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_POS, 1, 0, 0, 14 );
    110128    PSIMAGESLICE_TEST1( 1, 1, PS_CUT_Y_NEG, 1, 0, 0, 15 );
    111    
     129
    112130    /*
    113131       Verify the returned psVector structure pointer is null and program
    114132       execution doesn't stop, if input psImage input is null.
    115    
    116     */
    117     psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    118     out = psImageSlice( out, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );
    119     if ( out != NULL ) {
    120             psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" );
    121             return 41;
    122         }
    123        
    124        
     133
     134    */
     135    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
     136    out = psImageSlice( out, NULL, NULL, NULL, 0, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );
     137    if ( out != NULL ) {
     138        psError( __func__, "Giving a NULL image, psImageSlice didn't return NULL as expected" );
     139        return 101;
     140    }
     141
     142
    125143    /*
    126144       Verify the returned psVector structure pointer is null and program
     
    128146    */
    129147    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    130     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL );
    131     if ( out != NULL ) {
    132             psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" );
    133             return 42;
    134         }
    135        
    136     /*
    137    
     148    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, NULL );
     149    if ( out != NULL ) {
     150        psError( __func__, "Giving a NULL stat struct, psImageSlice didn't return NULL as expected" );
     151        return 102;
     152    }
     153
     154    /*
     155
    138156       Verify the returned psVector structure pointer is null and program
    139157       executions doesn't stop, if the input direction is not set to one of
     
    141159    */
    142160    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    143     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat );
    144     if ( out != NULL ) {
    145             psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" );
    146             return 43;
    147         }
    148        
     161    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, 5, stat );
     162    if ( out != NULL ) {
     163        psError( __func__, "Giving a bogus direction flag, psImageSlice didn't return NULL as expected" );
     164        return 103;
     165    }
     166
    149167    /*
    150168       Verify the returned psVector structure pointer is null and program
     
    152170    */
    153171    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    154     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat );
    155     if ( out != NULL ) {
    156             psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" );
    157             return 44;
    158         }
    159        
     172    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 0, 0, PS_CUT_X_POS, stat );
     173    if ( out != NULL ) {
     174        psError( __func__, "Giving a 0x0 region, psImageSlice didn't return NULL as expected" );
     175        return 104;
     176    }
     177
    160178    /*
    161179       Verify the returned psVector structure pointer is null and program
     
    164182    */
    165183    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    166     out = psImageSlice( out, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat );
    167     if ( out != NULL ) {
    168             psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" );
    169             return 45;
    170         }
    171        
    172     psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    173     out = psImageSlice( out, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat );
    174     if ( out != NULL ) {
    175             psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" );
    176             return 46;
    177         }
    178        
    179     psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    180     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat );
    181     if ( out != NULL ) {
    182             psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" );
    183             return 47;
    184         }
    185        
    186     psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    187     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat );
    188     if ( out != NULL ) {
    189             psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );
    190             return 48;
    191         }
    192        
     184    out = psImageSlice( out, NULL, image, mask, 1, c + 1, r / 10, 1, 1, PS_CUT_X_POS, stat );
     185    if ( out != NULL ) {
     186        psError( __func__, "Giving an invalid x position, psImageSlice didn't return NULL as expected" );
     187        return 105;
     188    }
     189
     190    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
     191    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r + 1, 1, 1, PS_CUT_X_POS, stat );
     192    if ( out != NULL ) {
     193        psError( __func__, "Giving an invalid y position, psImageSlice didn't return NULL as expected" );
     194        return 106;
     195    }
     196
     197    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
     198    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, c, 1, PS_CUT_X_POS, stat );
     199    if ( out != NULL ) {
     200        psError( __func__, "Giving an invalid numCols, psImageSlice didn't return NULL as expected" );
     201        return 107;
     202    }
     203
     204    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
     205    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, r, PS_CUT_X_POS, stat );
     206    if ( out != NULL ) {
     207        psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );
     208        return 108;
     209    }
     210
    193211    /*
    194212       Verify the returned psVector structure pointer is null and program
     
    198216    psLogMsg( __func__, PS_LOG_INFO, "Following should be an error." );
    199217    stat->options = 0;
    200     out = psImageSlice( out, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );
    201     if ( out != NULL ) {
    202             psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );
    203             return 49;
    204         }
    205        
     218    out = psImageSlice( out, NULL, image, mask, 1, c / 10, r / 10, 1, 1, PS_CUT_X_POS, stat );
     219    if ( out != NULL ) {
     220        psError( __func__, "Giving an invalid numRows, psImageSlice didn't return NULL as expected" );
     221        return 109;
     222    }
     223
    206224    psFree( image );
     225    psFree( positions );
    207226    psFree( mask );
    208227    psFree( out );
    209228    psFree( stat );
    210    
     229
    211230    return 0;
    212    
     231
    213232}
    214233
    215 
    216 
    217 
    218 
    219 
    220 
    221 
  • trunk/psLib/test/image/verified/tst_psImage.stderr

    r1212 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure
    8  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 101h
    9  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    10  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 102h
    11  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    12  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 104h
    13  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    14  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 108h
    15  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    16  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 301h
    17  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    18  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 302h
    19  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    20  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 304h
    21  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    22  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 308h
    23  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    24  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 404h
    25  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    26  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 408h
    27  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    28  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 808h
    29  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    30  <DATE> <TIME> |<HOST>|I| testImageAlloc|Testing psImage with type 810h
    31  <DATE> <TIME> |<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     7<DATE><TIME>|<HOST>|I| testImageAlloc|#546 - psImageAlloc shall allocate memory for a psImage structure
     8<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 101h
     9<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     10<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 102h
     11<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     12<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 104h
     13<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     14<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 108h
     15<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     16<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 301h
     17<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     18<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 302h
     19<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     20<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 304h
     21<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     22<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 308h
     23<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     24<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 404h
     25<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     26<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 408h
     27<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     28<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 808h
     29<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
     30<DATE><TIME>|<HOST>|I| testImageAlloc|Testing psImage with type 810h
     31<DATE><TIME>|<HOST>|E|   psImageAlloc|Invalid value for number of rows or columns (numRows=0, numCols=0).
    3232
    3333---> TESTPOINT PASSED (psImage{psImageAlloc} | tst_psImage.c)
     
    3939\**********************************************************************************/
    4040
    41  <DATE> <TIME> |<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage));
    42  <DATE> <TIME> |<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8);
    43  <DATE> <TIME> |<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4);
    44  <DATE> <TIME> |<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0);
    45  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified.
    46  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null.
    47  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values.
    48  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively.
    49  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type.
    50  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively.
    51  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image.
    52  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero.
    53  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null.
    54  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1].
    55  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified.
    56  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    57  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because input image or its pixel buffer is NULL.
    58  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program  execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified.
    59  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    60  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because number of rows or columns are zero (64x0).
    61  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    62  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because number of rows or columns are zero (0x128).
    63  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image.
    64  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    65  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location.
    66  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    67  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location.
    68  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    69  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location.
    70  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    71  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location.
    72  <DATE> <TIME> |<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image.  Also verify the input psImage structure is not modified.
    73  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    74  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,0:128]).
    75  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    76  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:64,128:256]).
    77  <DATE> <TIME> |<HOST>|I|testImageSubset|An error should follow...
    78  <DATE> <TIME> |<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:128,128:256]).
    79  <DATE> <TIME> |<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure
     41<DATE><TIME>|<HOST>|I|testImageSubset|memcpy(&preSubsetStruct,original,sizeof(psImage));
     42<DATE><TIME>|<HOST>|I|testImageSubset|subset1 = psImageAlloc(c/4,r/4,PS_TYPE_U8);
     43<DATE><TIME>|<HOST>|I|testImageSubset|subset2 = psImageSubset(subset1,original,c/2,r/2,c/4,r/4);
     44<DATE><TIME>|<HOST>|I|testImageSubset|subset3 = psImageSubset(NULL,original,c/2,r/2,0,0);
     45<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure is equal to the input psImage structure parameter out, if input parameter out is specified.
     46<DATE><TIME>|<HOST>|I|testImageSubset|Verify a new psImage structure is created, if input parameter out is set to null.
     47<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure contains expected values in the row member, if the input psImage structure image contains known values.
     48<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members nrow and ncol are equal to the input parameter nrow and ncol respectively.
     49<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member type is equal to the input psImage structure member type.
     50<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure members row0 and col0 are equal to the input parameters row0 and col0 respectively.
     51<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member parent is equal to the input psImage structure pointer image.
     52<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member Nchildren is equal to zero.
     53<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure member children is null.
     54<DATE><TIME>|<HOST>|I|testImageSubset|Verify the input psImage structure image only has the following members changed: 1) Nchildren is increased by one. 2) parent contains pointer psImage structure out at parent[Nchildren-1].
     55<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameter image is null. Also verified the input psImage structure is not modified.
     56<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     57<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because input image or its pixel buffer is NULL.
     58<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program  execution doesn't stop, if the input parameters nrow and/or ncol are zero. Also verify input psImage structure is not modified.
     59<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     60<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because number of rows or columns are zero (64x0).
     61<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     62<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because number of rows or columns are zero (0x128).
     63<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop, if the input parameters row0 and col0 are not within the range of values of psImage structure image.
     64<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     65<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (128,0) is not a valid pixel location.
     66<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     67<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (0,256) is not a valid pixel location.
     68<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     69<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (-1,0) is not a valid pixel location.
     70<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     71<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image because col0,row0 (0,-1) is not a valid pixel location.
     72<DATE><TIME>|<HOST>|I|testImageSubset|Verify the returned psImage structure pointer is null and program execution doesn't stop if the input parameters nrow, ncol, row0 and col0 specify a range of data not within the input psImage structure image.  Also verify the input psImage structure is not modified.
     73<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     74<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,0:<LINENO>]).
     75<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     76<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[0:<LINENO>,128:<LINENO>]).
     77<DATE><TIME>|<HOST>|I|testImageSubset|An error should follow...
     78<DATE><TIME>|<HOST>|E|  psImageSubset|Can not subset image outside of image boundaries (size=128x256, subset=[64:<LINENO>,128:<LINENO>]).
     79<DATE><TIME>|<HOST>|I|testImageSubset|psImageFreeChildren shall deallocate any children images of a psImage structure
    8080
    8181---> TESTPOINT PASSED (psImage{psImageSubset} | tst_psImage.c)
     
    8787\**********************************************************************************/
    8888
    89  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psU8
    90  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psU16
    91  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psU32
    92  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psS8
    93  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psS16
    94  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psS32
    95  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psF32
    96  <DATE> <TIME> |<HOST>|I|  testImageCopy|Image Copy Test for psF64
    97  <DATE> <TIME> |<HOST>|I|  testImageCopy|An error should follow...
    98  <DATE> <TIME> |<HOST>|E|    psImageCopy|Can not copy image because input image or its pixel buffer is NULL.
     89<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psU8
     90<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psU16
     91<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psU32
     92<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psS8
     93<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psS16
     94<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psS32
     95<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psF32
     96<DATE><TIME>|<HOST>|I|  testImageCopy|Image Copy Test for psF64
     97<DATE><TIME>|<HOST>|I|  testImageCopy|An error should follow...
     98<DATE><TIME>|<HOST>|E|    psImageCopy|Can not copy image because input image or its pixel buffer is NULL.
    9999
    100100---> TESTPOINT PASSED (psImage{psImageCopy} | tst_psImage.c)
  • trunk/psLib/test/image/verified/tst_psImageFFT.stderr

    r1221 r1404  
    2323\**********************************************************************************/
    2424
    25  <DATE> <TIME> |<HOST>|I|testImageComple|Following should be an error (type mismatch).
    26  <DATE> <TIME> |<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type.
    27  <DATE> <TIME> |<HOST>|I|testImageComple|Following should be an error (size mismatch).
    28  <DATE> <TIME> |<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions.
     25<DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (type mismatch).
     26<DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same type.
     27<DATE><TIME>|<HOST>|I|testImageComple|Following should be an error (size mismatch).
     28<DATE><TIME>|<HOST>|E| psImageComplex|The inputs to psImageComplex must be the same dimensions.
    2929
    3030---> TESTPOINT PASSED (psFFT{psImageComplex} | tst_psImageFFT.c)
  • trunk/psLib/test/image/verified/tst_psImageManip.stderr

    r1358 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|I|  testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure
    8  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of F64 imagery
    9  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of F32 imagery
    10  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of S32 imagery
    11  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of S16 imagery
    12  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of S8 imagery
    13  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of U32 imagery
    14  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of U16 imagery
    15  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of U8 imagery
    16  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of C32 imagery
    17  <DATE> <TIME> |<HOST>|I|  testImageClip|Testing clipping of C64 imagery
    18  <DATE> <TIME> |<HOST>|I|  testImageClip|Following should be an error (max<min)
    19  <DATE> <TIME> |<HOST>|E|    psImageClip|psImageClip can not be invoked with max < min.
     7<DATE><TIME>|<HOST>|I|  testImageClip|psImageClip shall limit the minimum and maximum data value within a psImage structure
     8<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of F64 imagery
     9<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of F32 imagery
     10<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of S32 imagery
     11<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of S16 imagery
     12<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of S8 imagery
     13<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of U32 imagery
     14<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of U16 imagery
     15<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of U8 imagery
     16<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of C32 imagery
     17<DATE><TIME>|<HOST>|I|  testImageClip|Testing clipping of C64 imagery
     18<DATE><TIME>|<HOST>|I|  testImageClip|Following should be an error (max<min)
     19<DATE><TIME>|<HOST>|E|    psImageClip|psImageClip can not be invoked with max < min.
    2020
    2121---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImageManip.c)
     
    2727\**********************************************************************************/
    2828
    29  <DATE> <TIME> |<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value
     29<DATE><TIME>|<HOST>|I|testImageClipNA|psImageClipNaN shall modified pixel values of NaN with a specified value
    3030
    3131---> TESTPOINT PASSED (psImage{psImageClipNAN} | tst_psImageManip.c)
     
    3737\**********************************************************************************/
    3838
    39  <DATE> <TIME> |<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value
    40  <DATE> <TIME> |<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC32
    41  <DATE> <TIME> |<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC64
    42  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    43  <DATE> <TIME> |<HOST>|E|psImageClipComp|Can not perform clip on NULL image
    44  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    45  <DATE> <TIME> |<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.
    46  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    47  <DATE> <TIME> |<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space.
    48  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    49  <DATE> <TIME> |<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.
    50  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    51  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range
    52  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    53  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range
    54  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    55  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range
    56  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    57  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range
    58  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    59  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range
    60  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    61  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range
    62  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    63  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range
    64  <DATE> <TIME> |<HOST>|I|testImageClipCo|Following should be an error:
    65  <DATE> <TIME> |<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range
     39<DATE><TIME>|<HOST>|I|testImageClipCo|psImageClipNaN shall modified pixel values of NaN with a specified value
     40<DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC32
     41<DATE><TIME>|<HOST>|I|testImageClipCo|Testing clipping at 409.6+256i to 682.667+512i for psC64
     42<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     43<DATE><TIME>|<HOST>|E|psImageClipComp|Can not perform clip on NULL image
     44<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     45<DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.
     46<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     47<DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the imaginary image space.
     48<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     49<DATE><TIME>|<HOST>|E|psImageClipComp|psImageClipComplexRegion can not be invoked with max < min in the real image space.
     50<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     51<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-6.80565e+38+0i) is outside of image's psC32 pixel range
     52<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     53<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (6.80565e+38+0i) is outside of image's psC32 pixel range
     54<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     55<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (-0-6.80565e+38i) is outside of image's psC32 pixel range
     56<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     57<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmin (0+6.80565e+38i) is outside of image's psC32 pixel range
     58<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     59<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-6.80565e+38+0i) is outside of image's psC32 pixel range
     60<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     61<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (6.80565e+38+0i) is outside of image's psC32 pixel range
     62<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     63<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (-0-6.80565e+38i) is outside of image's psC32 pixel range
     64<DATE><TIME>|<HOST>|I|testImageClipCo|Following should be an error:
     65<DATE><TIME>|<HOST>|E|psImageClipComp|Specified vmax (0+6.80565e+38i) is outside of image's psC32 pixel range
    6666
    6767---> TESTPOINT PASSED (psImage{psImageClipComplexRegion} | tst_psImageManip.c)
     
    7373\**********************************************************************************/
    7474
    75  <DATE> <TIME> |<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries
    76  <DATE> <TIME> |<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256).
    77  <DATE> <TIME> |<HOST>|I|testImageOverla|Following should error as overlay is NULL
    78  <DATE> <TIME> |<HOST>|E|psImageOverlayS|one of the input images was NULL.
    79  <DATE> <TIME> |<HOST>|I|testImageOverla|Following should error as image input is NULL
    80  <DATE> <TIME> |<HOST>|E|psImageOverlayS|one of the input images was NULL.
     75<DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay isn't within image boundaries
     76<DATE><TIME>|<HOST>|E|psImageOverlayS|Overlay image (32,64 -> 159,319) is partially outside of the input image (128 x 256).
     77<DATE><TIME>|<HOST>|I|testImageOverla|Following should error as overlay is NULL
     78<DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.
     79<DATE><TIME>|<HOST>|I|testImageOverla|Following should error as image input is NULL
     80<DATE><TIME>|<HOST>|E|psImageOverlayS|one of the input images was NULL.
    8181
    8282---> TESTPOINT PASSED (psImage{psImageOverlay} | tst_psImageManip.c)
     
    8888\**********************************************************************************/
    8989
    90  <DATE> <TIME> |<HOST>|E|   psImageRebin|Input image is NULL.
    91  <DATE> <TIME> |<HOST>|I| testImageRebin|Following should be an error.
    92  <DATE> <TIME> |<HOST>|E|   psImageRebin|The scale must be positive.
    93  <DATE> <TIME> |<HOST>|I| testImageRebin|Following should be an error.
    94  <DATE> <TIME> |<HOST>|E|   psImageRebin|The stats input can not be NULL.
    95  <DATE> <TIME> |<HOST>|I| testImageRebin|Following should be an error.
    96  <DATE> <TIME> |<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
    97  <DATE> <TIME> |<HOST>|I| testImageRebin|Following should be an error.
    98  <DATE> <TIME> |<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
    99  <DATE> <TIME> |<HOST>|I| testImageRebin|Following should be an error.
    100  <DATE> <TIME> |<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
     90<DATE><TIME>|<HOST>|E|   psImageRebin|Input image is NULL.
     91<DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error.
     92<DATE><TIME>|<HOST>|E|   psImageRebin|The scale must be positive.
     93<DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error.
     94<DATE><TIME>|<HOST>|E|   psImageRebin|The stats input can not be NULL.
     95<DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error.
     96<DATE><TIME>|<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
     97<DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error.
     98<DATE><TIME>|<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
     99<DATE><TIME>|<HOST>|I| testImageRebin|Following should be an error.
     100<DATE><TIME>|<HOST>|E|   psImageRebin|The stat options didn't specify a single supported statistic type.
    101101
    102102---> TESTPOINT PASSED (psImage{psImageRebin} | tst_psImageManip.c)
     
    108108\**********************************************************************************/
    109109
    110  <DATE> <TIME> |<HOST>|I|  testImageRoll|Following should generate an error.
    111  <DATE> <TIME> |<HOST>|E|    psImageRoll|Input image can not be NULL.
     110<DATE><TIME>|<HOST>|I|  testImageRoll|Following should generate an error.
     111<DATE><TIME>|<HOST>|E|    psImageRoll|Input image can not be NULL.
    112112
    113113---> TESTPOINT PASSED (psImage{psImageRoll} | tst_psImageManip.c)
     
    119119\**********************************************************************************/
    120120
    121  <DATE> <TIME> |<HOST>|I|testImageRotate|Following should be an error
    122  <DATE> <TIME> |<HOST>|E|  psImageRotate|The input image was NULL.
     121<DATE><TIME>|<HOST>|I|testImageRotate|Following should be an error
     122<DATE><TIME>|<HOST>|E|  psImageRotate|The input image was NULL.
    123123
    124124---> TESTPOINT PASSED (psImage{psImageRotate} | tst_psImageManip.c)
  • trunk/psLib/test/image/verified/tst_psImageStats01.stderr

    r1365 r1404  
    1  <DATE> <TIME> |<HOST>|E|   psImageStats|The input image can not be NULL.
    2  <DATE> <TIME> |<HOST>|E|   psImageStats|The input psStats struct can not be NULL.
    3  <DATE> <TIME> |<HOST>|E|   psImageStats|No statistic option/operation was specified.
     1<DATE><TIME>|<HOST>|E|   psImageStats|The input image can not be NULL.
     2<DATE><TIME>|<HOST>|E|   psImageStats|The input psStats struct can not be NULL.
     3<DATE><TIME>|<HOST>|E|   psImageStats|No statistic option/operation was specified.
  • trunk/psLib/test/runTest

    r1212 r1404  
    3030#
    3131#  $Revison:  $  $Name: not supported by cvs2svn $
    32 #  $Date: 2004-07-13 01:37:58 $
     32#  $Date: 2004-08-06 21:50:13 $
    3333#
    3434#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    133133            chop $hostname;
    134134            while( <OUTFILE> ) {
    135                 s/\d+:\d+:\d+/ <DATE> /;
    136                 s/\s+\d+:\d+:\d+\w/ <TIME> /;
    137                 s/$hostname/<HOST>/;
     135                s/\s+\d+:\d+:\d+\w/<TIME>/g;
     136                s/\d+:\d+:\d+/<DATE>/g;
     137                s/$hostname/<HOST>/g;
     138                s/: Line \d+/: Line <LINENO>/g;
     139                s/\:\d+/\:<LINENO>/g;
    138140                # Filter lines with malloc.  This is an artifact of memory testing
    139141                # with the Mac testbed
     
    156158            # Replace the variable date, time and host information with constants
    157159            while( <OUTFILE> ) {
    158                 s/\d+:\d+:\d+/ <DATE> /;
    159                 s/\s+\d+:\d+:\d+\w/ <TIME> /;
    160                 s/$hostname/<HOST>/;
     160                s/\s+\d+:\d+:\d+\w/<TIME>/g;
     161                s/\d+:\d+:\d+/<DATE>/g;
     162                s/$hostname/<HOST>/g;
     163                s/: Line \d+/: Line <LINENO>/g;
     164                s/\:\d+/\:<LINENO>/g;
    161165                # Filter lines with malloc.  This is an artifact of memory testing
    162166                # with the Mac testbed
  • trunk/psLib/test/sysUtils/tst_psTrace01.c

    r1136 r1404  
    2121
    2222        lev = psTraceGetLevel(".");
    23         if (lev != DEFAULT_TRACE_LEVEL) {
     23        if (lev != PS_DEFAULT_TRACE_LEVEL) {
    2424            printf("ERROR: expected trace level was %d, actual was %d\n",
    2525                   i, lev);
     
    4040
    4141    psTraceReset();
    42     if ((DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) ||
    43             (DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a")) ||
    44             (DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b")) ||
    45             (DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b.c"))) {
     42    if ((PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".")) ||
     43            (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a")) ||
     44            (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b")) ||
     45            (PS_DEFAULT_TRACE_LEVEL != psTraceGetLevel(".a.b.c"))) {
    4646        printf("ERROR: trace levels were not reset properly\n");
    4747        successFlag = false;
  • trunk/psLib/test/sysUtils/verified/atst_psAbort_01.stderr

    r1198 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|A|           main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R
     7<DATE><TIME>|<HOST>|A|           main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R
  • trunk/psLib/test/sysUtils/verified/atst_psAbort_02.stderr

    r1198 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|A|       __LINE__|NO_VALUES
     7<DATE><TIME>|<HOST>|A|       __LINE__|NO_VALUES
  • trunk/psLib/test/sysUtils/verified/atst_psAbort_03.stderr

    r1198 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|A|               |
     7<DATE><TIME>|<HOST>|A|               |
  • trunk/psLib/test/sysUtils/verified/tst_psError.stderr

    r1198 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|E|           main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R
     7<DATE><TIME>|<HOST>|E|           main|ALL TYPES intval = 1 longval = 2 floatval = 3.010000 charval = E strval = E R R O R
    88
    99---> TESTPOINT PASSED (psError{Multiple type values in error message} | tst_psError.c)
     
    1515\**********************************************************************************/
    1616
    17  <DATE> <TIME> |<HOST>|E|       __LINE__|NO VALUES
     17<DATE><TIME>|<HOST>|E|       __LINE__|NO VALUES
    1818
    1919---> TESTPOINT PASSED (psError{String values in error message} | tst_psError.c)
     
    2525\**********************************************************************************/
    2626
    27  <DATE> <TIME> |<HOST>|E|               |
     27<DATE><TIME>|<HOST>|E|               |
    2828
    2929---> TESTPOINT PASSED (psError{Empty strings in error message} | tst_psError.c)
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg00.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0 0.000000 beep beep
    2  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1 1.000000 beep beep
    3  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2 2.000000 beep beep
    4  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3 3.000000 beep beep
    5  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0 0.000000 beep beep
    6  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1 1.000000 beep beep
    7  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2 2.000000 beep beep
    8  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3 3.000000 beep beep
     1<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0 0.000000 beep beep
     2<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1 1.000000 beep beep
     3<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2 2.000000 beep beep
     4<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3 3.000000 beep beep
     5<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0 0.000000 beep beep
     6<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1 1.000000 beep beep
     7<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2 2.000000 beep beep
     8<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3 3.000000 beep beep
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg01.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    2  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    3  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    4  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
    5  <DATE> <TIME> |<HOST>|4|           main|Hello World!  My level is 4
    6  <DATE> <TIME> |<HOST>|5|           main|Hello World!  My level is 5
    7  <DATE> <TIME> |<HOST>|6|           main|Hello World!  My level is 6
    8  <DATE> <TIME> |<HOST>|7|           main|Hello World!  My level is 7
    9  <DATE> <TIME> |<HOST>|8|           main|Hello World!  My level is 8
    10  <DATE> <TIME> |<HOST>|9|           main|Hello World!  My level is 9
    11  <DATE> <TIME> |<HOST>|4|           main|This should  be displayed (level 4)
     1<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     2<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     3<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     4<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
     5<DATE><TIME>|<HOST>|4|           main|Hello World!  My level is 4
     6<DATE><TIME>|<HOST>|5|           main|Hello World!  My level is 5
     7<DATE><TIME>|<HOST>|6|           main|Hello World!  My level is 6
     8<DATE><TIME>|<HOST>|7|           main|Hello World!  My level is 7
     9<DATE><TIME>|<HOST>|8|           main|Hello World!  My level is 8
     10<DATE><TIME>|<HOST>|9|           main|Hello World!  My level is 9
     11<DATE><TIME>|<HOST>|4|           main|This should  be displayed (level 4)
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg02.stderr

    r1198 r1404  
    11------------- psLogSetFormat() -------------
    2  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    3  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    4  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    5  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
     2<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     3<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     4<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     5<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
    66------------- psLogSetFormat(NULL) -------------
    77------------- psLogSetFormat(T) -------------
    8  <DATE> <TIME> |
    9  <DATE> <TIME> |
    10  <DATE> <TIME> |
    11  <DATE> <TIME> |
     8<DATE><TIME>|
     9<DATE><TIME>|
     10<DATE><TIME>|
     11<DATE><TIME>|
    1212------------- psLogSetFormat(H) -------------
    1313<HOST>|
     
    3131Hello World!  My level is 3
    3232------------- psLogSetFormat(THLNM) -------------
    33  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    34  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    35  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    36  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
    37  <DATE> <TIME> |<HOST>|A| Under 15 chars|Hello World!
    38  <DATE> <TIME> |<HOST>|A|This string is |Hello World!
    39  <DATE> <TIME> |<HOST>|A|           main|Line #1
    40  <DATE> <TIME> |<HOST>|A|           main|Line #2
    41  <DATE> <TIME> |<HOST>|A|           main|Line #3
    42  <DATE> <TIME> |<HOST>|A|           main|Line #4
     33<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     34<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     35<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     36<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
     37<DATE><TIME>|<HOST>|A| Under 15 chars|Hello World!
     38<DATE><TIME>|<HOST>|A|This string is |Hello World!
     39<DATE><TIME>|<HOST>|A|           main|Line #1
     40<DATE><TIME>|<HOST>|A|           main|Line #2
     41<DATE><TIME>|<HOST>|A|           main|Line #3
     42<DATE><TIME>|<HOST>|A|           main|Line #4
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stderr

    r1198 r1404  
    1  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    2  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    3  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    4  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
     1<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     2<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     3<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     4<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
  • trunk/psLib/test/sysUtils/verified/tst_psLogMsg03.stdout

    r1276 r1404  
    88------------- psLogSetDestination(PS_LOG_TO_STDERR) -------------
    99------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------
    10  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    11  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    12  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    13  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
     10<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     11<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     12<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     13<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
    1414--------------- psLogSetDestination(file:log.txt) ---------------
    1515--------------------- The Contents of log.txt -------------------
    16  <DATE> <TIME> |<HOST>|A|           main|Hello World!  My level is 0
    17  <DATE> <TIME> |<HOST>|E|           main|Hello World!  My level is 1
    18  <DATE> <TIME> |<HOST>|W|           main|Hello World!  My level is 2
    19  <DATE> <TIME> |<HOST>|I|           main|Hello World!  My level is 3
     16<DATE><TIME>|<HOST>|A|           main|Hello World!  My level is 0
     17<DATE><TIME>|<HOST>|E|           main|Hello World!  My level is 1
     18<DATE><TIME>|<HOST>|W|           main|Hello World!  My level is 2
     19<DATE><TIME>|<HOST>|I|           main|Hello World!  My level is 3
    2020--------------- psLogSetDestination(file:/eva/log.txt) ----------
    2121
  • trunk/psLib/test/sysUtils/verified/tst_psMemory.stderr

    r1372 r1404  
    55\**********************************************************************************/
    66
    7  <DATE> <TIME> |<HOST>|I|TPCheckBufferPo|psAlloc shall allocate memory blocks writeable by caller.
     7<DATE><TIME>|<HOST>|I|TPCheckBufferPo|psAlloc shall allocate memory blocks writeable by caller.
    88
    99---> TESTPOINT PASSED (psMemory{checkBufferPositive} | tst_psMemory.c)
     
    1515\**********************************************************************************/
    1616
    17  <DATE> <TIME> |<HOST>|I|  TPOutOfMemory|Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback.
    18  <DATE> <TIME> |<HOST>|I|TPOutOfMemoryEx|Custom MemExhaustedCallback was invoked.
    19  <DATE> <TIME> |<HOST>|A|      p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:228
     17<DATE><TIME>|<HOST>|I|  TPOutOfMemory|Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback.
     18<DATE><TIME>|<HOST>|I|TPOutOfMemoryEx|Custom MemExhaustedCallback was invoked.
     19<DATE><TIME>|<HOST>|A|      p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:<LINENO>
    2020
    2121---> TESTPOINT PASSED (psMemory{outOfMemory} | tst_psMemory.c)
     
    2727\**********************************************************************************/
    2828
    29  <DATE> <TIME> |<HOST>|I|TPReallocOutOfM|Upon requesting more memory than is available, psRealloc shall call the psMemExhaustedCallback.
    30  <DATE> <TIME> |<HOST>|A|    p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:193
     29<DATE><TIME>|<HOST>|I|TPReallocOutOfM|Upon requesting more memory than is available, psRealloc shall call the psMemExhaustedCallback.
     30<DATE><TIME>|<HOST>|A|    p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:<LINENO>
    3131
    3232---> TESTPOINT PASSED (psMemory{reallocOutOfMemory} | tst_psMemory.c)
     
    3838\**********************************************************************************/
    3939
    40  <DATE> <TIME> |<HOST>|I|      TPrealloc|psRealloc shall increase/decrease memory buffer while preserving contents
    41  <DATE> <TIME> |<HOST>|I|      TPrealloc|Expanding memory buffer.
    42  <DATE> <TIME> |<HOST>|I|      TPrealloc|Shrinking memory buffer.
     40<DATE><TIME>|<HOST>|I|      TPrealloc|psRealloc shall increase/decrease memory buffer while preserving contents
     41<DATE><TIME>|<HOST>|I|      TPrealloc|Expanding memory buffer.
     42<DATE><TIME>|<HOST>|I|      TPrealloc|Shrinking memory buffer.
    4343
    4444---> TESTPOINT PASSED (psMemory{psRealloc} | tst_psMemory.c)
     
    5050\**********************************************************************************/
    5151
    52  <DATE> <TIME> |<HOST>|I|TPallocCallback|call to psAlloc/psRealloc shall generate a callback if specified memory ID is allocated.
    53  <DATE> <TIME> |<HOST>|I|memAllocateCall|block 2 was (re)allocated
    54  <DATE> <TIME> |<HOST>|I|memAllocateCall|block 3 was (re)allocated
    55  <DATE> <TIME> |<HOST>|I|memFreeCallback|block 2 was freed
    56  <DATE> <TIME> |<HOST>|I|memFreeCallback|block 3 was freed
    57  <DATE> <TIME> |<HOST>|I|memAllocateCall|block 4 was (re)allocated
    58  <DATE> <TIME> |<HOST>|I|memAllocateCall|block 4 was (re)allocated
    59  <DATE> <TIME> |<HOST>|I|memFreeCallback|block 4 was freed
     52<DATE><TIME>|<HOST>|I|TPallocCallback|call to psAlloc/psRealloc shall generate a callback if specified memory ID is allocated.
     53<DATE><TIME>|<HOST>|I|memAllocateCall|block 2 was (re)allocated
     54<DATE><TIME>|<HOST>|I|memAllocateCall|block 3 was (re)allocated
     55<DATE><TIME>|<HOST>|I|memFreeCallback|block 2 was freed
     56<DATE><TIME>|<HOST>|I|memFreeCallback|block 3 was freed
     57<DATE><TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated
     58<DATE><TIME>|<HOST>|I|memAllocateCall|block 4 was (re)allocated
     59<DATE><TIME>|<HOST>|I|memFreeCallback|block 4 was freed
    6060
    6161---> TESTPOINT PASSED (psMemory{allocCallback} | tst_psMemory.c)
     
    6767\**********************************************************************************/
    6868
    69  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|psMemCheckLeaks shall return the number of blocks above an ID that are still allocated
    70  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce one instance.
     69<DATE><TIME>|<HOST>|I|   TPcheckLeaks|psMemCheckLeaks shall return the number of blocks above an ID that are still allocated
     70<DATE><TIME>|<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce one instance.
    7171                   file:line ID
    72          tst_psMemory.c:378  1
    73  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|Testing psMemCheckLeaks again with a different leak location
    74  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce one error.
     72         tst_psMemory.c:<LINENO>  1
     73<DATE><TIME>|<HOST>|I|   TPcheckLeaks|Testing psMemCheckLeaks again with a different leak location
     74<DATE><TIME>|<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce one error.
    7575                   file:line ID
    76          tst_psMemory.c:408  11
    77  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|Testing psMemCheckLeaks again with multiple leak locations.
    78  <DATE> <TIME> |<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce two errors.
     76         tst_psMemory.c:<LINENO>  11
     77<DATE><TIME>|<HOST>|I|   TPcheckLeaks|Testing psMemCheckLeaks again with multiple leak locations.
     78<DATE><TIME>|<HOST>|I|   TPcheckLeaks|following psMemCheckLeaks call should produce two errors.
    7979                   file:line ID
    80          tst_psMemory.c:436  16
    81          tst_psMemory.c:436  14
     80         tst_psMemory.c:<LINENO>  16
     81         tst_psMemory.c:<LINENO>  14
    8282
    8383---> TESTPOINT PASSED (psMemory{checkLeaks} | tst_psMemory.c)
     
    8989\**********************************************************************************/
    9090
    91  <DATE> <TIME> |<HOST>|I|TPmemCorruption|psMemCheckCorruption shall detect memory corruptions
    92  <DATE> <TIME> |<HOST>|I|TPmemCorruption|psMemCheckCorruption should output an error message and memProblemCallback callback should be called.
    93  <DATE> <TIME> |<HOST>|E|psMemCheckCorru|Memory Corruption: memory block 1 is corrupted (buffer underflow)
    94  <DATE> <TIME> |<HOST>|I|memProblemCallb|memory callback called for id 1 (psMemCheckCorruption:260).
     91<DATE><TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption shall detect memory corruptions
     92<DATE><TIME>|<HOST>|I|TPmemCorruption|psMemCheckCorruption should output an error message and memProblemCallback callback should be called.
     93<DATE><TIME>|<HOST>|E|psMemCheckCorru|Memory Corruption: memory block 1 is corrupted (buffer underflow)
     94<DATE><TIME>|<HOST>|I|memProblemCallb|memory callback called for id 1 (psMemCheckCorruption:<LINENO>).
    9595
    9696---> TESTPOINT PASSED (psMemory{psMemCorruption} | tst_psMemory.c)
     
    102102\**********************************************************************************/
    103103
    104  <DATE> <TIME> |<HOST>|I|TPFreeReference|memory reference count shall be incrementable/decrementable
    105  <DATE> <TIME> |<HOST>|I|TPFreeReference|psFree shall be just decrement a multiple refererenced pointer.
     104<DATE><TIME>|<HOST>|I|TPFreeReference|memory reference count shall be incrementable/decrementable
     105<DATE><TIME>|<HOST>|I|TPFreeReference|psFree shall be just decrement a multiple refererenced pointer.
    106106
    107107---> TESTPOINT PASSED (psMemory{freeReferencedMemory} | tst_psMemory.c)
     
    113113\**********************************************************************************/
    114114
    115  <DATE> <TIME> |<HOST>|I| TPmultipleFree|Next should be an error about multiple freeing.
    116  <DATE> <TIME> |<HOST>|E|  checkMemBlock|Memory Corruption: memory block 1 was freed but still used.
    117  <DATE> <TIME> |<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:548 freed more than once at tst_psMemory.c:553
    118  <DATE> <TIME> |<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:553
     115<DATE><TIME>|<HOST>|I| TPmultipleFree|Next should be an error about multiple freeing.
     116<DATE><TIME>|<HOST>|E|  checkMemBlock|Memory Corruption: memory block 1 was freed but still used.
     117<DATE><TIME>|<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:<LINENO> freed more than once at tst_psMemory.c:<LINENO>
     118<DATE><TIME>|<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:<LINENO>
    119119
    120120---> TESTPOINT PASSED (psMemory{multipleFree} | tst_psMemory.c)
  • trunk/psLib/test/sysUtils/verified/tst_psStringCopy.stderr

    r1198 r1404  
    5050\**********************************************************************************/
    5151
    52  <DATE> <TIME> |<HOST>|E|     psString.c|psStringNCopy with negative count specified -5
     52<DATE><TIME>|<HOST>|E|     psString.c|psStringNCopy with negative count specified -5
    5353
    5454---> TESTPOINT PASSED (psStringNCopy{Copy string with negative size} | tst_psStringCopy.c)
Note: See TracChangeset for help on using the changeset viewer.