IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13084


Ignore:
Timestamp:
Apr 30, 2007, 2:08:52 PM (19 years ago)
Author:
gusciora
Message:

Removed psLogMsg() calls from the test code.

Location:
trunk/psLib/test
Files:
15 edited

Legend:

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

    r11180 r13084  
    55*  @author GLG, MHPCC
    66*
    7 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2007-01-19 20:42:21 $
     7*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2007-05-01 00:08:52 $
    99*
    1010*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    366366        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    367367    }
    368     /* HERE
    369     */
    370368}
    371369
  • trunk/psLib/test/astro/tap_psCoord01.c

    r11663 r13084  
    1212*      values were obtained, and they nearly all fail now.
    1313*
    14 *    @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    15 *    @date  $Date: 2007-02-06 04:11:54 $
    16 *    @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    17 *    @date  $Date: 2007-02-06 04:11:54 $
     14*    @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     15*    @date  $Date: 2007-05-01 00:08:52 $
     16*    @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     17*    @date  $Date: 2007-05-01 00:08:52 $
    1818*
    1919*    Copyright 2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    995995
    996996
    997     /* HERE
     997    /*
    998998        #define DEG_INC2 15.0
    999999        #define VERBOSE 0
  • trunk/psLib/test/astro/tap_psCoord02.c

    r11657 r13084  
    77*  XXX: These tests should probably be split among several files
    88*
    9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2007-02-06 01:01:05 $
     9*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2007-05-01 00:08:52 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    509509    // psPlaneTransformDeriv()
    510510    // Ensure psPlaneTransformDeriv() returns NULL for NULL input plane
    511     // psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
    512511    // Following should generate error message
    513512    // XXX: un-NULL the first parameter since we test that above
     
    549548        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    550549    }
    551     /* HERE
    552     */
    553550}
    554551
  • trunk/psLib/test/astro/tap_psEarthOrientation_corrections.c

    r12607 r13084  
    1111 *
    1212 */
    13 
    1413#include <pslib.h>
    1514#include <string.h>
    16 
    1715#include "tap.h"
    1816#include "pstap.h"
     
    2826int main(void)
    2927{
     28    psLogSetFormat("HLNM");
     29    psLogSetLevel(PS_LOG_INFO);
    3030    plan_tests(8);
    31 
    32 //    diag("Tests for psEarthOrientation Correction Functions");
    3331
    3432    // Initialize library internal structures
     
    297295        //Return NULL for NULL time input
    298296        psEarthPole *pcorr = NULL;
    299         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     297        // Following should generate error message
    300298        pcorr = psEOC_PrecessionCorr(empty, PS_IERS_A);
    301299        if (pcorr != NULL) {
     
    306304     
    307305        //Return NULL for Invalid IERS table
    308         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     306        // Following should generate error message
    309307        pcorr = psEOC_PrecessionCorr(time2, 3);
    310308        if (pcorr != NULL) {
     
    464462     
    465463        //Return NULL for NULL input time
    466         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     464        // Following should generate error message
    467465        eop = psEOC_PolarTideCorr(empty);
    468466        if (eop != NULL) {
     
    501499     
    502500        //Return NULL for NULL input time.
    503         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     501        // Following should generate error message
    504502        nute = psEOC_NutationCorr(empty);
    505503        if (nute != NULL) {
  • trunk/psLib/test/fits/tap_psFits.c

    r11439 r13084  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2007-01-30 21:32:57 $
     8*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2007-05-01 00:08:52 $
    1010*
    1111*  XXXX: All of the makeTable() tests are failing, as well as one additional one.
     
    352352
    353353        // check to see if given a bogus extension name, it errors.
    354         psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");
     354        // Following should be an error
    355355        // XXX: Verify error
    356356        if (psFitsMoveExtName(fits, "bogus") || psErrorGetStackSize() != 1)
     
    362362
    363363        // check to see if given a NULL psFits, it errors.
    364         psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");
     364        // Following should be an error
    365365        // XXX: Verify error
    366366        if (psFitsMoveExtName(NULL, "bogus") || psErrorGetStackSize() != 1)
     
    372372
    373373        // check to see if given a NULL extname, it errors.
    374         psLogMsg(__func__,PS_LOG_INFO, "Following should be an error");
     374        // Following should be an error
    375375        // XXX: Verify error
    376376        if (psFitsMoveExtName(fits, NULL) || psErrorGetStackSize() != 1)
     
    384384
    385385        // Attempt to get ext name from null fits file
    386         psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for NULL fits file");
     386        // Following should generate an error for NULL fits file
    387387        if(psFitsGetExtName(NULL) != NULL)
    388388        {
  • trunk/psLib/test/imageops/tap_psImageConvolve.c

    r12195 r13084  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-03-03 01:23:32 $
     7 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-05-01 00:08:52 $
    99 *
    1010 *  XXX: Must test the tRelative parameter to psKernelGenerate()
     
    161161                   result->yMin, result->yMax, result->xMin, result->xMax);
    162162            for (psS32 y = result->yMin; y <= result->yMax; y++) {
    163                 printf("HERE y is %d\n", y);
     163                // printf("y is %d\n", y);
    164164                for (psS32 x = result->xMin; x <= result->xMax; x++) {
    165165                    printf(" %6.2f ", result->kernel[y][x]);
  • trunk/psLib/test/imageops/tap_psImageGeomManip.c

    r13042 r13084  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-04-26 22:18:03 $
     7 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-05-01 00:08:52 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    568568
    569569
    570 printf("HERE\n");
    571570    // testImageRotate()
    572571    if (1) {
  • trunk/psLib/test/math/tap_psHist00.c

    r10813 r13084  
    5555    // XXX: How should we test these kinds of things?
    5656    if (0) {
    57         psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error message.");
     57        // Following should generate an error message
    5858        psHistogram *myHist = psHistogramAlloc(higher, lower, 1);
    5959        if (myHist != NULL) {
  • trunk/psLib/test/math/tap_psPolynomial.c

    r10820 r13084  
    1616*    XXX: Compare to FLT_EPSILON
    1717*
    18 *    @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    19 *    @date $Date: 2006-12-21 20:05:12 $
     18*    @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     19*    @date $Date: 2007-05-01 00:08:52 $
    2020*
    2121*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    7777    if (0) {
    7878        // Attempt to allocate with negative order
    79         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     79        // Following should generate error msg for negative terms
    8080        if (psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, -1) != NULL) {
    8181            diag("psPolynomial1DAlloc() Returned structure but expected NULL");
     
    124124    if (0) {
    125125        // Attempt to allocate with negative order
    126         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     126        // Following should generate error msg for negative terms
    127127        if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, -1, 1) != NULL) {
    128128            diag("psPolynomial2DAlloc() returned structure but expected NULL");
    129129        }
    130130        // Attempt to allocate with negative order
    131         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     131        // Following should generate error msg for negative terms
    132132        if (psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, -1) != NULL) {
    133133            diag("psPolynomial2DAlloc() returned structure but expected NULL");
     
    181181    if (0) {
    182182        // Attempt to allocate with negative order
    183         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     183        // Following should generate error msg for negative terms
    184184        if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1) != NULL) {
    185185            diag("psPolynomial3DAlloc(): returned structure but expected NULL");
    186186        }
    187187        // Attempt to allocate with negative order
    188         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     188        // Following should generate error msg for negative terms
    189189        if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1) != NULL) {
    190190            diag("psPolynomial3DAlloc() returned structure but expected NULL");
    191191        }
    192192        // Attempt to allocate with negative order
    193         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     193        // Following should generate error msg for negative terms
    194194        if (psPolynomial3DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1) != NULL) {
    195195            diag("psPolynomial3DAlloc(): returned structure but expected NULL");
     
    247247    if (0) {
    248248        // Attempt to allocate with negative order
    249         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     249        // Following should generate error msg for negative terms
    250250        if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, -1, 1, 1, 1) != NULL) {
    251251            diag("psPolynomial4DAlloc(): returned structure but expected NULL");
    252252        }
    253253        // Attempt to allocate with negative order
    254         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     254        // Following should generate error msg for negative terms
    255255        if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, -1, 1, 1) != NULL) {
    256256            diag("psPolynomial4DAlloc(): returned structure but expected NULL");
     
    258258        }
    259259        // Attempt to allocate with negative order
    260         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     260        // Following should generate error msg for negative terms
    261261        if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, -1, 1) != NULL) {
    262262            diag("psPolynomial4DAlloc(): returned structure but expected NULL");
     
    264264        }
    265265        // Attempt to allocate with negative order
    266         psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     266        // Following should generate error msg for negative terms
    267267        if (psPolynomial4DAlloc(PS_POLYNOMIAL_ORD, 1, 1, 1, -1) != NULL) {
    268268            diag("psPolynomial4DAlloc(): returned structure but expected NULL");
  • trunk/psLib/test/math/tap_psRandom.c

    r12607 r13084  
    267267        psFree(myRNG1);
    268268
    269         psLogMsg(__func__,PS_LOG_INFO,"Reset a NULL psRandom variable, should generate an error message");
     269        // Reset a NULL psRandom variable, should generate an error message
    270270        psRandomReset(NULL,SEED);
    271271    }
  • trunk/psLib/test/mathtypes/tap_psVector.c

    r12781 r13084  
    468468        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); \
    469469    }
    470 //HERE
     470
    471471    // psVectorToString() tests
    472472    TEST_VECTOR_TO_STRING(PS_TYPE_U8,  5, 1, 1, "[1,2,3,4,5]");
  • trunk/psLib/test/sys/tap_psError.c

    r13010 r13084  
    55 *  @author  Eric Van Alst, MHPCC
    66 *
    7  *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    8  *  @date  $Date: 2007-04-25 01:07:08 $
     7 *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     8 *  @date  $Date: 2007-05-01 00:08:52 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1111 *
    1212 */
    13 
    1413#include <stdio.h>
    1514#include <stdlib.h>
    1615#include <string.h>
    1716#include <inttypes.h>
    18 
    1917#include "pslib.h"
    2018#include "tap.h"
     
    3937{
    4038    psLogSetFormat("HLNM");
     39    psLogSetLevel(PS_LOG_INFO);
    4140    plan_tests(60);
    4241
     
    301300        // Verify the return value of psErrorCodeString
    302301        // psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE;
    303         // psLogMsg("tst_psError05", PS_LOG_INFO, psErrorCodeString(code));
    304 
    305302        // Verify the return value of psErrorCodeString if code is negative
    306303        ok( psErrorCodeString(-1) == NULL, "error string with neg. code");
     
    359356                b. an appropriate error is generated.
    360357        */
    361         psLogMsg(__func__,PS_LOG_INFO,"Following should be an error.");
     358        // Following should be an error
    362359        psErrorClear();
    363360        psErrorRegister(NULL,1);
     
    379376    }
    380377}
    381 //HERE
  • trunk/psLib/test/sys/tap_psMemory.c

    r12781 r13084  
    55*  @author Robert DeSonia, MHPCC
    66*
    7 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2007-04-10 21:09:31 $
     7*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2007-05-01 00:08:52 $
    99*
    1010*  XXXX: Several tests fail with an Abort and are commented out.
     
    296296    }
    297297
    298 //HERE
    299298    // memCheckTypes()
    300299    if (1) {
  • trunk/psLib/test/sys/tap_psString.c

    r12781 r13084  
    2020 *  @author  Eric Van Alst, MHPCC
    2121 *
    22  *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
    23  *  @date  $Date: 2007-04-10 21:09:31 $
     22 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
     23 *  @date  $Date: 2007-05-01 00:08:52 $
    2424 *
    2525 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    2626 *
    2727 */
    28 
    2928#include <string.h>
    3029#include "pslib.h"
    3130#include "tap.h"
    3231#include "pstap.h"
    33 
    3432
    3533#define STR_0 "binky had a leeeetle lamb"
     
    409407        char** test = NULL;
    410408        //psStringCopy should return NULL for NULL input string
    411         //    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message");
     409        // Following should generate error message
    412410        output = psStringCopy(nullTest);
    413411        ok(output == NULL, "psStringCopy to return NULL for NULL input string");
     
    463461    }
    464462}
    465 // HERE
  • trunk/psLib/test/xml/tap_psXML.c

    r11439 r13084  
    1818* XXXX: There are no data tests, he simple prints data to STDOUT
    1919*
    20 *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
    21 *  @date  $Date: 2007-01-30 21:32:57 $
     20*  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
     21*  @date  $Date: 2007-05-01 00:08:52 $
    2222*
    2323*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    313313        ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
    314314    }
    315     /* HERE
    316     */
    317 }
     315}
Note: See TracChangeset for help on using the changeset viewer.