Changeset 2273 for trunk/psLib/test/astronomy/tst_psMetadata_04.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psMetadata_04.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psMetadata_04.c
r2204 r2273 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $21 * @date $Date: 2004-1 0-27 00:57:33$20 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2004-11-04 01:05:00 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 108 108 "Null metadata collection not allowed", 0); 109 109 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."); 111 111 return 11; 112 112 } … … 118 118 "Null key name not allowed", 0); 119 119 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."); 121 121 return 12; 122 122 } … … 128 128 "Couldn't find metadata item. Name: AARGH", 0); 129 129 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."); 131 131 return 13; 132 132 } … … 150 150 item = psMetadataGet(NULL, 0); 151 151 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."); 153 153 return 15; 154 154 } … … 160 160 "Couldn't find metadata item with given index. Index: 22", 0); 161 161 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."); 163 163 return 16; 164 164 } … … 171 171 metadata->table = NULL; 172 172 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."); 174 174 return 20; 175 175 } … … 183 183 metadata->list = NULL; 184 184 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."); 186 186 return 20; 187 187 } … … 197 197 psFree(item4); 198 198 if ( psMemCheckLeaks(0, NULL, stdout) != 0 ) { 199 psError( __func__,"memory leaks detected.");199 psError(PS_ERR_UNKNOWN, true,"memory leaks detected."); 200 200 return 20; 201 201 }
Note:
See TracChangeset
for help on using the changeset viewer.
