Changeset 860 for trunk/psLib/test/sysUtils/tst_psHash03.c
- Timestamp:
- Jun 3, 2004, 5:20:08 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psHash03.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash03.c
r584 r860 1 1 /***************************************************************************** 2 This code testswhether hash tables entries can be removed correctly.2 This code will test whether hash tables entries can be removed correctly. 3 3 4 4 GUS: Add code to test whether duplicates are handled correctly. … … 40 40 char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL}; 41 41 char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL}; 42 int currentId = psMemGetId(); 43 int memLeaks = 0; 42 44 43 45 printPositiveTestHeader(stdout, … … 82 84 testStatus); 83 85 86 psHashFree(myHashTable, NULL); 87 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 88 if (0 != memLeaks) { 89 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 90 } 91 psMemCheckCorruption(1); 92 84 93 return (!testStatus); 85 94 }
Note:
See TracChangeset
for help on using the changeset viewer.
