Changeset 4790 for trunk/psLib/test/types
- Timestamp:
- Aug 16, 2005, 11:17:15 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/types/tst_psMetadata_07.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/tst_psMetadata_07.c
r4547 r4790 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 7-13 02:47:01$11 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-08-16 21:11:08 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 // Test A - Read an XML config file 24 24 printPositiveTestHeader(stdout, "psMetadata", "Test A - Read an XML config file"); 25 int res = 0; 26 psU32 nFail = 0; 27 psMetadata *md = NULL; 28 md = psMetadataConfigParseXml(md, &nFail, XML_CONFIG_FILE, true); 29 if (nFail != 0) { 30 printf("psMetadataConfigParseXml returned error %d\n", res); 31 } 32 33 psFree(md); 25 /* 26 int res = 0; 27 psU32 nFail = 0; 28 psMetadata *md = NULL; 29 md = psMetadataConfigParseXml(md, &nFail, XML_CONFIG_FILE, true); 30 if (nFail != 0) { 31 printf("psMetadataConfigParseXml returned error %d\n", res); 32 } 33 34 psFree(md); 35 */ 34 36 printFooter(stdout, "psMetadata", "Test A - Read an XML config file", true); 35 36 // Test B - Free data37 printPositiveTestHeader(stdout, "psMetadata", "Test B - Free data");38 psMemCheckLeaks(0, NULL, stdout, false);39 psS32 nBad = psMemCheckCorruption(0);40 if(nBad) {41 printf("ERROR: Found %d bad memory blocks\n", nBad);42 }43 printFooter(stdout, "psMetadata", "Test B - Free data", true);44 37 /* 38 // Test B - Free data 39 printPositiveTestHeader(stdout, "psMetadata", "Test B - Free data"); 40 psMemCheckLeaks(0, NULL, stdout, false); 41 psS32 nBad = psMemCheckCorruption(0); 42 if(nBad) { 43 printf("ERROR: Found %d bad memory blocks\n", nBad); 44 } 45 printFooter(stdout, "psMetadata", "Test B - Free data", true); 46 */ 45 47 return 0; 46 48 }
Note:
See TracChangeset
for help on using the changeset viewer.
