Changeset 2981
- Timestamp:
- Jan 13, 2005, 11:45:13 AM (22 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 3 edited
-
astronomy/tst_psMetadata_05.c (modified) (2 diffs)
-
astronomy/verified/tst_psMetadata_05.stderr (modified) (1 diff)
-
collections/tst_psMetadata_05.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psMetadata_05.c
r2636 r2981 22 22 * @author Ross Harman, MHPCC 23 23 * 24 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $25 * @date $Date: 200 4-12-06 19:59:39$24 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2005-01-13 21:45:13 $ 26 26 * 27 27 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 167 167 168 168 if (psMetadataItemPrint(fd, "S32 = %ld\n", item2) == false) { 169 printf("ERROR: Return type should be tr ye\n");169 printf("ERROR: Return type should be true\n"); 170 170 return 10; 171 171 } 172 172 173 173 if (psMetadataItemPrint(fd, "BOL = %ld\n", item3) == false) { 174 printf("ERROR: Return type should be tr ye\n");174 printf("ERROR: Return type should be true\n"); 175 175 return 11; 176 176 } 177 177 178 178 if (psMetadataItemPrint(fd, "F32 = %g\n", item5) == false) { 179 printf("ERROR: Return type should be tr ye\n");179 printf("ERROR: Return type should be true\n"); 180 180 return 12; 181 181 } 182 182 183 183 if (psMetadataItemPrint(fd, "F64 = %g\n", item6) == false) { 184 printf("ERROR: Return type should be tr ye\n");184 printf("ERROR: Return type should be true\n"); 185 185 return 13; 186 186 } 187 187 188 188 if (psMetadataItemPrint(fd, "STR = %s\n", item7) == false) { 189 printf("ERROR: Return type should be tr ye\n");189 printf("ERROR: Return type should be true\n"); 190 190 return 14; 191 191 } 192 193 if (psMetadataItemPrint(fd, "UNK = \n", item8) == false) { 194 printf("ERROR: Return type should be trye\n"); 192 psLogMsg(__func__,PS_LOG_INFO,"Attempt to print item of invalid type, should generate error message"); 193 if (psMetadataItemPrint(fd, "UNK = \n", item8) == true) { 194 printf("ERROR: Return type should be false\n"); 195 fclose(fd); 195 196 return 15; 196 197 } -
trunk/psLib/test/astronomy/verified/tst_psMetadata_05.stderr
r2613 r2981 1 <DATE><TIME>|<HOST>|I|main 2 Attempt to print item of invalid type, should generate error message 1 3 <DATE><TIME>|<HOST>|E|psMetadataItemPrint (psMetadataIO.c:<LINENO>) 2 4 Specified psMetadataType, 10, is not supported. -
trunk/psLib/test/collections/tst_psMetadata_05.c
r2636 r2981 22 22 * @author Ross Harman, MHPCC 23 23 * 24 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $25 * @date $Date: 200 4-12-06 19:59:39$24 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2005-01-13 21:45:13 $ 26 26 * 27 27 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 167 167 168 168 if (psMetadataItemPrint(fd, "S32 = %ld\n", item2) == false) { 169 printf("ERROR: Return type should be tr ye\n");169 printf("ERROR: Return type should be true\n"); 170 170 return 10; 171 171 } 172 172 173 173 if (psMetadataItemPrint(fd, "BOL = %ld\n", item3) == false) { 174 printf("ERROR: Return type should be tr ye\n");174 printf("ERROR: Return type should be true\n"); 175 175 return 11; 176 176 } 177 177 178 178 if (psMetadataItemPrint(fd, "F32 = %g\n", item5) == false) { 179 printf("ERROR: Return type should be tr ye\n");179 printf("ERROR: Return type should be true\n"); 180 180 return 12; 181 181 } 182 182 183 183 if (psMetadataItemPrint(fd, "F64 = %g\n", item6) == false) { 184 printf("ERROR: Return type should be tr ye\n");184 printf("ERROR: Return type should be true\n"); 185 185 return 13; 186 186 } 187 187 188 188 if (psMetadataItemPrint(fd, "STR = %s\n", item7) == false) { 189 printf("ERROR: Return type should be tr ye\n");189 printf("ERROR: Return type should be true\n"); 190 190 return 14; 191 191 } 192 193 if (psMetadataItemPrint(fd, "UNK = \n", item8) == false) { 194 printf("ERROR: Return type should be trye\n"); 192 psLogMsg(__func__,PS_LOG_INFO,"Attempt to print item of invalid type, should generate error message"); 193 if (psMetadataItemPrint(fd, "UNK = \n", item8) == true) { 194 printf("ERROR: Return type should be false\n"); 195 fclose(fd); 195 196 return 15; 196 197 }
Note:
See TracChangeset
for help on using the changeset viewer.
