Ignore:
Timestamp:
Jul 6, 2006 2:28:45 PM (18 years ago)
Author:
bennylp
Message:

Set the caching pool workspace size in pjsip-test to 2MB (configurable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test-pjsip/uri_test.c

    r587 r589  
    811811 
    812812    PJ_LOG(3,(THIS_FILE, "  simple test")); 
    813     pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE); 
    814813    for (i=0; i<PJ_ARRAY_SIZE(uri_test_array); ++i) { 
     814        pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE); 
    815815        status = do_uri_test(pool, &uri_test_array[i]); 
     816        pjsip_endpt_release_pool(endpt, pool); 
    816817        if (status != PJ_SUCCESS) { 
    817818            PJ_LOG(3,(THIS_FILE, "  error %d when testing entry %d", 
     
    820821        } 
    821822    } 
    822     pjsip_endpt_release_pool(endpt, pool); 
    823823 
    824824    return 0; 
     
    828828{ 
    829829    unsigned i, loop; 
    830     pj_pool_t *pool; 
    831830    pj_status_t status; 
    832831    pj_timestamp zero; 
     
    843842    var.cmp_time.u32.hi = var.cmp_time.u32.lo = 0; 
    844843    for (loop=0; loop<LOOP_COUNT; ++loop) { 
    845         pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE); 
    846844        for (i=0; i<PJ_ARRAY_SIZE(uri_test_array); ++i) { 
     845            pj_pool_t *pool; 
     846            pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE); 
    847847            status = do_uri_test(pool, &uri_test_array[i]); 
     848            pjsip_endpt_release_pool(endpt, pool); 
    848849            if (status != PJ_SUCCESS) { 
    849850                PJ_LOG(3,(THIS_FILE, "  error %d when testing entry %d", 
     
    853854            } 
    854855        } 
    855         pjsip_endpt_release_pool(endpt, pool); 
    856856    } 
    857857 
Note: See TracChangeset for help on using the changeset viewer.