Changeset 4457 for trunk/psLib/test/collections/tst_psArray.c
- Timestamp:
- Jul 5, 2005, 5:04:35 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psArray.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psArray.c
r4308 r4457 17 17 * @author Ross Harman, MHPCC 18 18 * 19 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $20 * @date $Date: 2005-0 6-17 23:44:22$19 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 20 * @date $Date: 2005-07-06 03:04:35 $ 21 21 * 22 22 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 103 103 } 104 104 } 105 fprintf(stderr,"array size = % d\n", psArr->nalloc);105 fprintf(stderr,"array size = %ld\n", psArr->nalloc); 106 106 if (psArr->nalloc != 5) { 107 107 psError(PS_ERR_UNKNOWN, true,"Array Size wrong"); 108 108 return 3; 109 109 } 110 fprintf(stderr,"array population = % d\n", psArr->n);110 fprintf(stderr,"array population = %ld\n", psArr->n); 111 111 if (psArr->n != 5) { 112 112 psError(PS_ERR_UNKNOWN, true,"Array population wrong"); … … 137 137 } 138 138 } 139 fprintf(stderr,"array size = % d\n", psArr->nalloc);139 fprintf(stderr,"array size = %ld\n", psArr->nalloc); 140 140 if (psArr->nalloc != 10) { 141 141 psError(PS_ERR_UNKNOWN, true,"Array Size wrong"); 142 142 return 6; 143 143 } 144 fprintf(stderr,"array population = % d\n", psArr->n);144 fprintf(stderr,"array population = %ld\n", psArr->n); 145 145 if (psArr->n != 10) { 146 146 psError(PS_ERR_UNKNOWN, true,"Array Population wrong"); … … 160 160 } 161 161 } 162 fprintf(stderr,"array size = % d\n", psArr->nalloc);162 fprintf(stderr,"array size = %ld\n", psArr->nalloc); 163 163 if (psArr->nalloc != 3) { 164 164 psError(PS_ERR_UNKNOWN, true,"Array Size wrong"); 165 165 return 9; 166 166 } 167 fprintf(stderr,"array population = % d\n", psArr->n);167 fprintf(stderr,"array population = %ld\n", psArr->n); 168 168 if (psArr->n != 3) { 169 169 psError(PS_ERR_UNKNOWN, true,"Array Population wrong"); … … 189 189 return 100; 190 190 } 191 fprintf(stderr,"Array size after removal = % d\n",psArr->n);191 fprintf(stderr,"Array size after removal = %ld\n",psArr->n); 192 192 if ( psArr->n != 2 ) { 193 193 psError(PS_ERR_UNKNOWN, true, "Items in array not decremented after removal"); … … 274 274 } 275 275 } 276 fprintf(stderr,"array size = % d\n", psArr->nalloc);276 fprintf(stderr,"array size = %ld\n", psArr->nalloc); 277 277 if (psArr->nalloc != 10) { 278 278 psError(PS_ERR_UNKNOWN, true,"Array Size wrong"); 279 279 return 3; 280 280 } 281 fprintf(stderr,"array population = % d\n", psArr->n);281 fprintf(stderr,"array population = %ld\n", psArr->n); 282 282 if (psArr->n != 10) { 283 283 psError(PS_ERR_UNKNOWN, true,"Array population wrong");
Note:
See TracChangeset
for help on using the changeset viewer.
