IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2004, 12:04:12 PM (22 years ago)
Author:
desonia
Message:

changed psHashInsert to psHashAdd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psHash02.c

    r1073 r1201  
    4949    printPositiveTestHeader(stdout,
    5050                            "psHash functions",
    51                             "psHashInsert()");
     51                            "psHashAdd()");
    5252
    5353    myHashTable = psHashAlloc(NUM_HASH_TABLE_BUCKETS);
     
    5555    while (myKeys[i] != NULL) {
    5656        id = IdAlloc(myData[i]);
    57         psHashInsert(myHashTable, myKeys[i], id);
     57        psHashAdd(myHashTable, myKeys[i], id);
    5858        psFree(id);
    5959        i++;
     
    7575    }
    7676
    77     printFooter(stdout,
    78                 "psHash functions",
    79                 "psHashInsert()",
    80                 testStatus);
    81 
    8277    //    psHashFree(myHashTable, NULL);
    8378    psFree(myHashTable);
    8479
    85     memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
     80    memLeaks = psMemCheckLeaks(currentId,NULL,stderr);
    8681    if (0 != memLeaks) {
    8782        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
     
    8984    psMemCheckCorruption(1);
    9085
     86    printFooter(stdout,
     87                "psHash functions",
     88                "psHashAdd()",
     89                testStatus);
     90
    9191    return (!testStatus);
    9292}
Note: See TracChangeset for help on using the changeset viewer.