IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2008, 2:09:04 PM (18 years ago)
Author:
eugene
Message:

merging from eam_branch_20080430 : cleanups for tests, minor fixes from tests, reduced verbosity level in some places, add UPDATE and RESET directives to MULTI and METADATA in config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sys/tap_psError.c

    r13084 r17515  
    55 *  @author  Eric Van Alst, MHPCC
    66 *
    7  *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
    8  *  @date  $Date: 2007-05-01 00:08:52 $
     7 *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
     8 *  @date  $Date: 2008-05-05 00:09:04 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919#include "pstap.h"
    2020
     21// XXX in this file, several operations are only validated by printing an output to the screen.   
     22// we should define an output file and compare the contents of the output file to expectations.
     23// I've commented out these features for now
     24
     25# if (0)
    2126// Function used in testError02 to verify the psErrorStackPrintV function
    2227static void myErrorStackPrint(
     
    3237    va_end(ap);
    3338}
    34 
     39# endif
    3540
    3641psS32 main( psS32 argc, char* argv[] )
     
    8388            psErrorCode code=PS_ERR_BAD_PARAMETER_VALUE;
    8489            ok(psError(code, true, "Error code = %d", code) == code, "Failed return value verify.");
    85             psErrorStackPrint(stderr,"ERROR STACK PRINT Test1A");
     90            // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1A");
    8691            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    8792        }
     
    9499            ok(psError(code+1, true, "Error code = %d", code+1) == code+1,
    95100                 "Failed return with empty string.");
    96             psErrorStackPrint(stderr,"ERROR STACK PRINT Test1B");
     101            // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1B");
    97102            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    98103        }
     
    104109            ok(psError(-1, true, "Error code = %d", -1) == -1,
    105110                 "Failed return with undefined code.");
    106             psErrorStackPrint(stderr,"ERROR STACK PRINT Test1D");
     111            // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1D");
    107112            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    108113        }
     
    115120            ok(psError(code, false, "Error code = %d", code) == code,
    116121                "Failed return with false new arg.");
    117             psErrorStackPrint(stderr,"ERROR STACK PRINT Test1E");
     122            // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1E");
    118123            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    119124        }
     
    124129            psMemId id = psMemGetId();
    125130            ok(psError(9, true, "Errno code = %d", 9) == 9, "Error Code" );
    126             psErrorStackPrint(stderr,"ERROR STACK PRINT Test1F");
     131            // psErrorStackPrint(stderr,"ERROR STACK PRINT Test1F");
    127132            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    128133        }
     
    138143            ok(psError(code, true, "Error code = %d", code) == code,
    139144                "Failed return value verify.");
    140             myErrorStackPrint(stderr,"ERROR STACK PRINT Test%dA",2);
     145            // myErrorStackPrint(stderr,"ERROR STACK PRINT Test%dA",2);
    141146            ok(!psMemCheckLeaks(id, NULL, NULL, false), "no memory leaks");
    142147        }
Note: See TracChangeset for help on using the changeset viewer.