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/astronomy/tst_psMetadata_04.c

    r2204 r2273  
    1818*  @author  Ross Harman, MHPCC
    1919*
    20 *  @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
    21 *  @date  $Date: 2004-10-27 00:57:33 $
     20*  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
     21*  @date  $Date: 2004-11-04 01:05:00 $
    2222*
    2323*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    108108                            "Null metadata collection not allowed", 0);
    109109    if ( psMetadataLookup(NULL, "myItem2") != NULL ) {
    110         psError(__func__,"psMetadataLookup did not return NULL with null metadata.");
     110        psError(PS_ERR_UNKNOWN, true,"psMetadataLookup did not return NULL with null metadata.");
    111111        return 11;
    112112    }
     
    118118                            "Null key name not allowed", 0);
    119119    if ( psMetadataLookup(metadata, NULL) != NULL ) {
    120         psError(__func__,"psMetadata did not return NULL with null key.");
     120        psError(PS_ERR_UNKNOWN, true,"psMetadata did not return NULL with null key.");
    121121        return 12;
    122122    }
     
    128128                            "Couldn't find metadata item. Name: AARGH", 0);
    129129    if ( psMetadataLookup(metadata, "AARGH") != NULL ) {
    130         psError(__func__,"psMetadata did not return NULL with a non-existant item.");
     130        psError(PS_ERR_UNKNOWN, true,"psMetadata did not return NULL with a non-existant item.");
    131131        return 13;
    132132    }
     
    150150    item = psMetadataGet(NULL, 0);
    151151    if ( item != NULL ) {
    152         psError(__func__,"psMetadataGet did not return NULL with null metadata structure.");
     152        psError(PS_ERR_UNKNOWN, true,"psMetadataGet did not return NULL with null metadata structure.");
    153153        return 15;
    154154    }
     
    160160                            "Couldn't find metadata item with given index. Index: 22", 0);
    161161    if ( psMetadataGet(metadata, 22) != NULL ) {
    162         psError(__func__,"psMetadataGet did not return NULL with non-existant metadata item.");
     162        psError(PS_ERR_UNKNOWN, true,"psMetadataGet did not return NULL with non-existant metadata item.");
    163163        return 16;
    164164    }
     
    171171    metadata->table = NULL;
    172172    if ( psMetadataLookup(metadata,"myItem2") != NULL ) {
    173         psError(__func__,"psMetadataLookup did not return null for invalid metadata object.");
     173        psError(PS_ERR_UNKNOWN, true,"psMetadataLookup did not return null for invalid metadata object.");
    174174        return 20;
    175175    }
     
    183183    metadata->list = NULL;
    184184    if ( psMetadataGet(metadata,0) != NULL ) {
    185         psError(__func__,"psMetadataLookup did not return null for invalid metadata object.");
     185        psError(PS_ERR_UNKNOWN, true,"psMetadataLookup did not return null for invalid metadata object.");
    186186        return 20;
    187187    }
     
    197197    psFree(item4);
    198198    if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) {
    199         psError(__func__,"memory leaks detected.");
     199        psError(PS_ERR_UNKNOWN, true,"memory leaks detected.");
    200200        return 20;
    201201    }
Note: See TracChangeset for help on using the changeset viewer.