Changeset 2626 for trunk/psLib/test/collections/tst_psHash04.c
- Timestamp:
- Dec 3, 2004, 5:02:28 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psHash04.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psHash04.c
r2392 r2626 47 47 ID* id = NULL; 48 48 49 printPositiveTestHeader(stdout, 50 "psHash functions", 51 "psHashKeyList()"); 52 49 printPositiveTestHeader(stdout,"psHash functions","psHashKeyList()"); 53 50 myHashTable = psHashAlloc(NUM_HASH_TABLE_BUCKETS); 54 51 i = 0; … … 65 62 tmp = tmp->next; 66 63 } 67 64 printFooter(stdout,"psHash functions","psHashKeyList()",testStatus); 68 65 psFree(myLinkList); 69 66 70 printFooter(stdout, 71 "psHash functions", 72 "psHashKeyList()", 73 testStatus); 67 printNegativeTestHeader(stdout,"psHashKeyList","NULL table","Can not lookup with NULL table",0); 68 myLinkList = psHashKeyList(NULL); 69 if(myLinkList != NULL) { 70 psError(PS_ERR_UNKNOWN,true,"psHashKeyList retrieved a key list from a NULL table."); 71 return 1; 72 } 73 printFooter(stdout,"psHashKeyList","NULL table",true); 74 74 75 75 psFree(myHashTable); 76 76 77 77 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 78 if ( 0 != memLeaks) {78 if (memLeaks != 0) { 79 79 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 80 80 }
Note:
See TracChangeset
for help on using the changeset viewer.
