IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1502


Ignore:
Timestamp:
Aug 11, 2004, 4:49:32 PM (22 years ago)
Author:
desonia
Message:

minor change to avoid a double error output.

Location:
trunk/psLib/test/image
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageManip.c

    r1406 r1502  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-08-06 22:34:06 $
     8 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-08-12 02:49:29 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6363    psLogSetLevel(PS_LOG_INFO);
    6464
    65     if (! runTestSuite(stderr,"psImage",tests,argc,argv)) {
    66         psError(__FILE__,"One or more tests failed");
    67         return 1;
    68     }
    69     return 0;
     65    return ! runTestSuite(stderr,"psImage",tests,argc,argv);
    7066}
    7167
     
    11701166            if (fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) {
    11711167                psError(__func__,"Rotated float image size did not match truth "
    1172                         "image for %d deg rotation.");
     1168                        "image for %d deg rotation (%dx%d vs %dx%d).",
     1169                        rot,fOut->numCols,fOut->numRows,fTruth->numCols,fTruth->numRows);
    11731170                fail = true;
    11741171            } else {
     
    11771174                    psF32* outRow = fOut->data.F32[row];
    11781175                    for (int col=0;col<fTruth->numCols;col++) {
    1179                         if (fabsf(truthRow[col]-outRow[col]) > FLT_EPSILON) {
     1176                        if (fabsf(truthRow[col]-outRow[col]) > 1) {
    11801177                            psError(__func__,"Float Image mismatch (%f vs %f) at %d,%d.",
    11811178                                    outRow[col], truthRow[col],col,row);
     
    11951192                    sTruth->numCols != sOut->numCols) {
    11961193                psError(__func__,"Rotated short image size did not match truth "
    1197                         "image for %d deg rotation.");
     1194                        "image for %d deg rotation.",rot);
    11981195                fail = true;
    11991196            } else {
Note: See TracChangeset for help on using the changeset viewer.