Changeset 860 for trunk/psLib/test/sysUtils/tst_psHash04.c
- Timestamp:
- Jun 3, 2004, 5:20:08 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psHash04.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash04.c
r584 r860 1 1 /***************************************************************************** 2 This code testswhether the call psHashKeyList() function works.2 This code will test whether the call psHashKeyList() function works. 3 3 *****************************************************************************/ 4 4 #include <stdio.h> … … 36 36 char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL}; 37 37 char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL}; 38 int currentId = psMemGetId(); 39 int memLeaks = 0; 38 40 39 41 printPositiveTestHeader(stdout, … … 59 61 testStatus); 60 62 63 psHashFree(myHashTable, NULL); 64 65 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 66 if (0 != memLeaks) { 67 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 68 } 69 psMemCheckCorruption(1); 70 61 71 return(!testStatus); 62 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
