Changeset 2626
- Timestamp:
- Dec 3, 2004, 5:02:28 PM (22 years ago)
- Location:
- trunk/psLib/test/collections
- Files:
-
- 2 edited
-
tst_psHash04.c (modified) (2 diffs)
-
verified/tst_psHash04.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psHash04.c
r2392 r2626 47 47 ID* id = NULL; 48 48 49 printPositiveTestHeader(stdout, 50 "psHash functions", 51 "psHashKeyList()"); 52 49 printPositiveTestHeader(stdout,"psHash functions","psHashKeyList()"); 53 50 myHashTable = psHashAlloc(NUM_HASH_TABLE_BUCKETS); 54 51 i = 0; … … 65 62 tmp = tmp->next; 66 63 } 67 64 printFooter(stdout,"psHash functions","psHashKeyList()",testStatus); 68 65 psFree(myLinkList); 69 66 70 printFooter(stdout, 71 "psHash functions", 72 "psHashKeyList()", 73 testStatus); 67 printNegativeTestHeader(stdout,"psHashKeyList","NULL table","Can not lookup with NULL table",0); 68 myLinkList = psHashKeyList(NULL); 69 if(myLinkList != NULL) { 70 psError(PS_ERR_UNKNOWN,true,"psHashKeyList retrieved a key list from a NULL table."); 71 return 1; 72 } 73 printFooter(stdout,"psHashKeyList","NULL table",true); 74 74 75 75 psFree(myHashTable); 76 76 77 77 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); 78 if ( 0 != memLeaks) {78 if (memLeaks != 0) { 79 79 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 80 80 } -
trunk/psLib/test/collections/verified/tst_psHash04.stdout
r1421 r2626 12 12 ---> TESTPOINT PASSED (psHash functions{psHashKeyList()} | tst_psHash04.c) 13 13 14 /***************************** TESTPOINT ******************************************\ 15 * TestFile: tst_psHash04.c * 16 * TestPoint: psHashKeyList{NULL table} * 17 * TestType: Negative * 18 * ExpectedErrorText: Can not lookup with NULL table * 19 * ExpectedStatusValue: 0 * 20 \**********************************************************************************/ 21 22 23 ---> TESTPOINT PASSED (psHashKeyList{NULL table} | tst_psHash04.c) 24
Note:
See TracChangeset
for help on using the changeset viewer.
