Changeset 860 for trunk/psLib/test/sysUtils/tst_psHash00.c
- Timestamp:
- Jun 3, 2004, 5:20:08 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/tst_psHash00.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash00.c
r584 r860 1 1 /***************************************************************************** 2 This code tests whether a hash tablebe allocated successfully.2 This code will test whether a hash table can be allocated successfully. 3 3 *****************************************************************************/ 4 4 #include <stdio.h> … … 12 12 int testStatus = true; 13 13 int i = 0; 14 14 int currentId = psMemGetId(); 15 int memLeaks = 0; 15 16 printPositiveTestHeader(stdout, 16 17 "psHash functions", … … 51 52 testStatus); 52 53 54 psHashFree(myHashTable, NULL); 55 56 memLeaks = psMemCheckLeaks(currentId,NULL,NULL); 57 if (0 != memLeaks) { 58 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 59 } 60 psMemCheckCorruption(1); 61 53 62 return (!testStatus); 54 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
