Changeset 2204 for trunk/psLib/test/collections/tst_psMetadataIO.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psMetadataIO.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psMetadataIO.c
r1986 r2204 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-10- 06 22:51:31 $15 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-10-27 00:57:31 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 80 80 vec = (psVector*)metadataItem->data.V; 81 81 printf("Key Value: "); 82 for( inti=0; i<vec->nalloc;i++) {82 for(psS32 i=0; i<vec->nalloc;i++) { 83 83 printf("%d ", vec->data.S32[i]); 84 84 } … … 103 103 static void printMetadataTable(psHash *mdTable) 104 104 { 105 inti;105 psS32 i; 106 106 psHashBucket* ptr = NULL; 107 107 for(i=0; i<mdTable->nbucket; i++) { … … 123 123 124 124 125 int main(intargc, char* argv[])125 psS32 main(psS32 argc, char* argv[]) 126 126 { 127 127 // Test A - Read config file with overwrite set true 128 128 printPositiveTestHeader(stdout, "psMetadata", "Test A - Read config file with overwrite set true"); 129 129 psMetadata *metadata1 = NULL; 130 intfailedLines1 = 0;130 psS32 failedLines1 = 0; 131 131 failedLines1 = psMetadataParseConfig(&metadata1, "test.config", true); 132 132 printf("Failed lines: %d Expected: 6\n", failedLines1); … … 138 138 printPositiveTestHeader(stdout, "psMetadata", "Test B - Read config file with overwrite set false"); 139 139 psMetadata *metadata2 = NULL; 140 intfailedLines2 = 0;140 psS32 failedLines2 = 0; 141 141 failedLines2 = psMetadataParseConfig(&metadata2, "test.config", false); 142 142 printf("Failed lines: %d Expected: 7", failedLines2); … … 148 148 printPositiveTestHeader(stdout, "psMetadata", "Test C - Read config file without auto-allocation of metadata"); 149 149 psMetadata *metadata3 = psMetadataAlloc(); 150 intfailedLines3 = 0;150 psS32 failedLines3 = 0; 151 151 failedLines3 = psMetadataParseConfig(&metadata3, "test.config", false); 152 152 printf("Failed lines: %d Expected: 7", failedLines3); … … 176 176 psMemCheckLeaks(0, NULL, stdout); 177 177 psMemCheckCorruption(0); 178 intnBad = psMemCheckCorruption(0);178 psS32 nBad = psMemCheckCorruption(0); 179 179 if(nBad) { 180 180 printf("ERROR: Found %d bad memory blocks\n", nBad);
Note:
See TracChangeset
for help on using the changeset viewer.
