Changeset 860 for trunk/psLib/test/sysUtils/tst_psHash02.c
- Timestamp:
- Jun 3, 2004, 5:20:08 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psHash02.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash02.c
r584 r860 1 1 /***************************************************************************** 2 This code testswhether hash tables entries can be inserted correctly.2 This code will test whether hash tables entries can be inserted correctly. 3 3 4 4 GUS: Add code to test whether duplicates are handled correctly (use a 5 small has ttable and lots of keys).5 small hash table and lots of keys). 6 6 *****************************************************************************/ 7 7 #include <stdio.h> … … 41 41 char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL}; 42 42 char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL}; 43 int currentId = psMemGetId(); 44 int memLeaks = 0; 43 45 44 46 printPositiveTestHeader(stdout, … … 69 71 testStatus); 70 72 73 psHashFree(myHashTable, NULL); 74 75 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 76 if (0 != memLeaks) { 77 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 78 } 79 psMemCheckCorruption(1); 80 71 81 return (!testStatus); 72 82 }
Note:
See TracChangeset
for help on using the changeset viewer.
