IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/psTest.c

    r2204 r2273  
    8585                runAll = false;
    8686                if ( sscanf( optarg, "%i", &n ) != 1 ) {
    87                     psError( __func__, "Failed to parse the testpoint number (%s).",
    88                              optarg );
     87                    psError(PS_ERR_UNKNOWN, true, "Failed to parse the testpoint number (%s).",
     88                            optarg );
    8989                    break;
    9090                }
     
    103103                }
    104104                if ( ! found ) {
    105                     psError( __func__, "The specified testpoint number (%d) doesn't exist in this test driver.",
    106                              n );
     105                    psError(PS_ERR_UNKNOWN, true, "The specified testpoint number (%d) doesn't exist in this test driver.",
     106                            n );
    107107                    break;
    108108                }
    109109                break;
    110110            case '?':
    111                 psError( __func__, "Option %s is not recognized and is ignored.", optarg );
     111                psError(PS_ERR_UNKNOWN, true, "Option %s is not recognized and is ignored.", optarg );
    112112                break;
    113113            }
     
    130130
    131131    if ( ! success ) {
    132         psError( testPointFile, "One or more tests failed" );
     132        psError( PS_ERR_UNKNOWN, true,
     133                 "One or more tests failed" );
    133134    }
    134135
     
    151152            if ( retVal == 0 ) { // only bother checking memory if test executed to end.
    152153                if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) {
    153                     psError( __func__, "Memory Leaks Detected" );
     154                    psError(PS_ERR_UNKNOWN, true, "Memory Leaks Detected" );
    154155                    retVal = 64;
    155156                }
     
    175176        if ( childReturn == 0 ) { // only bother checking memory if test executed to end.
    176177            if ( psMemCheckLeaks( currentId, NULL, stderr ) != 0 ) {
    177                 psError( __func__, "Memory Leaks Detected" );
     178                psError(PS_ERR_UNKNOWN, true, "Memory Leaks Detected" );
    178179                childReturn = 64;
    179180            }
Note: See TracChangeset for help on using the changeset viewer.