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/collections/tst_psArray.c

    r2204 r2273  
    1212 *  @author  Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    15  *  @date  $Date: 2004-10-27 00:57:33 $
     14 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     15 *  @date  $Date: 2004-11-04 01:05:00 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4343    psArray *psArr = psArrayAlloc(5);
    4444    if (psArr->nalloc != 5) {
    45         psError(__func__,"psArray didn't have proper number of elements.");
     45        psError(PS_ERR_UNKNOWN, true,"psArray didn't have proper number of elements.");
    4646        return 1;
    4747    }
     
    6464        printf("ts[%d].x = %d ts[%d].y = %.2f\n", i, ts->x, i, ts->y);
    6565        if (fabsf(ts->x - 10*i) > 0.01f || fabsf(ts->y - 10.1*i) > 0.01f) {
    66             psError(__func__,"Couldn't properly get elements from array.");
     66            psError(PS_ERR_UNKNOWN, true,"Couldn't properly get elements from array.");
    6767            return 2;
    6868        }
     
    7070    printf("array size = %d\n", psArr->nalloc);
    7171    if (psArr->nalloc != 5) {
    72         psError(__func__,"Array Size wrong");
     72        psError(PS_ERR_UNKNOWN, true,"Array Size wrong");
    7373        return 3;
    7474    }
    7575    printf("array population = %d\n", psArr->n);
    7676    if (psArr->n != 5) {
    77         psError(__func__,"Array population wrong");
     77        psError(PS_ERR_UNKNOWN, true,"Array population wrong");
    7878        return 4;
    7979    }
     
    9898        printf("ts[%d].x = %d ts[%d].y = %.2f\n", i, ts->x, i, ts->y);
    9999        if (fabsf(ts->x - 10*i) > 0.01f || fabsf(ts->y - 10.1*i) > 0.01f) {
    100             psError(__func__,"Couldn't properly get elements from array.");
     100            psError(PS_ERR_UNKNOWN, true,"Couldn't properly get elements from array.");
    101101            return 5;
    102102        }
     
    104104    printf("array size = %d\n", psArr->nalloc);
    105105    if (psArr->nalloc != 10) {
    106         psError(__func__,"Array Size wrong");
     106        psError(PS_ERR_UNKNOWN, true,"Array Size wrong");
    107107        return 6;
    108108    }
    109109    printf("array population = %d\n", psArr->n);
    110110    if (psArr->n != 10) {
    111         psError(__func__,"Array Population wrong");
     111        psError(PS_ERR_UNKNOWN, true,"Array Population wrong");
    112112        return 7;
    113113    }
     
    122122        printf("ts[%d].x = %d ts[%d].y = %.2f\n", i, ts->x, i, ts->y);
    123123        if (fabsf(ts->x - 10*i) > 0.01f || fabsf(ts->y - 10.1*i) > 0.01f) {
    124             psError(__func__,"Couldn't properly get elements from array.");
     124            psError(PS_ERR_UNKNOWN, true,"Couldn't properly get elements from array.");
    125125            return 8;
    126126        }
     
    128128    printf("array size = %d\n", psArr->nalloc);
    129129    if (psArr->nalloc != 3) {
    130         psError(__func__,"Array Size wrong");
     130        psError(PS_ERR_UNKNOWN, true,"Array Size wrong");
    131131        return 9;
    132132    }
    133133    printf("array population = %d\n", psArr->n);
    134134    if (psArr->n != 3) {
    135         psError(__func__,"Array Population wrong");
     135        psError(PS_ERR_UNKNOWN, true,"Array Population wrong");
    136136        return 10;
    137137    }
Note: See TracChangeset for help on using the changeset viewer.