Changeset 3381 for trunk/psLib/test/astronomy/tst_psMetadataIO.c
- Timestamp:
- Mar 7, 2005, 10:58:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psMetadataIO.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psMetadataIO.c
r3341 r3381 1 1 /** @file tst_psMetadataIO.c 2 * 3 * @brief Test driver for psMetadataIO functions 4 * 5 * This test driver contains the following tests for psMetadata: 6 * Test A - Read config file with overwrite set true 7 * Test B - Read config file with overwrite set false 8 * Test C - Read config file without auto-allocation of metadata 9 * Test D - Attempt to use null fileName argument 10 * Test E - Attempt to open nonexistant file 11 * Test F - Free psMetadata 12 * 13 * @author Ross Harman, MHPCC 14 * 15 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-02-28 23:34:10 $ 17 * 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 19 * 20 */ 2 * 3 * @brief Test driver for psMetadataIO functions 4 * 5 * This test driver contains the following tests for psMetadata: 6 * Test A - Read config file with overwrite set true 7 * Test B - Read config file with overwrite set false 8 * Test C - Read config file without auto-allocation of metadata 9 * Test D - Attempt to use null fileName argument 10 * Test E - Attempt to open nonexistant file 11 * Test F - Free psMetadata 12 * 13 * @author Ross Harman, MHPCC 14 * @author Robert DeSonia, MHPCC 15 * 16 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-03-07 20:58:50 $ 18 * 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 20 * 21 */ 21 22 22 23 #include <string.h> … … 69 70 70 71 switch (metadataItem->type) { 71 case PS_META_ LIST:72 case PS_META_MULTI: 72 73 printf("Key Value: %17c", ' '); 73 74 break; … … 92 93 printf("Key Comment: %s\n", metadataItem->comment); 93 94 94 if(metadataItem->data.V && metadataItem->type==PS_META_ LIST) {95 if(metadataItem->data.V && metadataItem->type==PS_META_MULTI) { 95 96 printMetadataList(metadataItem->data.V, " "); 96 97 }
Note:
See TracChangeset
for help on using the changeset viewer.
