IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2004, 12:00:42 PM (22 years ago)
Author:
evanalst
Message:

Add test case to test for errorno error codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psError.c

    r1878 r1882  
    88 *     testError02 - psErrorStackPrintV()               (Testpoint #726)
    99 *     testError03 - psErrorGet(), psErrorLast()        (Testpoint #727)
    10  *     testError04 - psErrorClear()                     (Testpoint #)
    11  *     testError05 - psErrorCodeString()                (Testpoint #)
     10 *     testError04 - psErrorClear()                     (Testpoint #728)
     11 *     testError05 - psErrorCodeString()                (Testpoint #729)
    1212 *
    1313 *  @author  Eric Van Alst, MHPCC
    1414 *
    15  *  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
    16  *  @date  $Date: 2004-09-24 19:46:30 $
     15 *  @version $Revision: 1.11 $  $Name: not supported by cvs2svn $
     16 *  @date  $Date: 2004-09-24 22:00:42 $
    1717 *
    1818 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2222#include <stdio.h>
    2323#include <stdlib.h>
     24#include <string.h>
    2425#include "pslib.h"
    2526#include "psTest.h"
     
    264265    psErrorStackPrint(stderr,"ERROR STACK PRINT Test1E");
    265266
    266     // Call psErrorMsg with
     267    // test1F psErrorMsg with a error code less then PS_ERR_BASE(256)
     268    if( psErrorMsg("test1F", 9, true, "Errno code = %d", 9) != 9) {
     269        psLogMsg("test_psError01", PS_LOG_ERROR, "Failed return with errno code.");
     270        return 6;
     271    }
     272    psErrorStackPrint(stderr,"ERROR STACK PRINT Test1F");
     273
    267274    return 0;
    268275}
Note: See TracChangeset for help on using the changeset viewer.