Changeset 1201 for trunk/psLib/test/sysUtils/tst_psHash02.c
- Timestamp:
- Jul 8, 2004, 12:04:12 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psHash02.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash02.c
r1073 r1201 49 49 printPositiveTestHeader(stdout, 50 50 "psHash functions", 51 "psHash Insert()");51 "psHashAdd()"); 52 52 53 53 myHashTable = psHashAlloc(NUM_HASH_TABLE_BUCKETS); … … 55 55 while (myKeys[i] != NULL) { 56 56 id = IdAlloc(myData[i]); 57 psHash Insert(myHashTable, myKeys[i], id);57 psHashAdd(myHashTable, myKeys[i], id); 58 58 psFree(id); 59 59 i++; … … 75 75 } 76 76 77 printFooter(stdout,78 "psHash functions",79 "psHashInsert()",80 testStatus);81 82 77 // psHashFree(myHashTable, NULL); 83 78 psFree(myHashTable); 84 79 85 memLeaks = psMemCheckLeaks(currentId,NULL, NULL);80 memLeaks = psMemCheckLeaks(currentId,NULL,stderr); 86 81 if (0 != memLeaks) { 87 82 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); … … 89 84 psMemCheckCorruption(1); 90 85 86 printFooter(stdout, 87 "psHash functions", 88 "psHashAdd()", 89 testStatus); 90 91 91 return (!testStatus); 92 92 }
Note:
See TracChangeset
for help on using the changeset viewer.
