Changeset 589 for pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
- Timestamp:
- Jul 6, 2006 2:28:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
r587 r589 811 811 812 812 PJ_LOG(3,(THIS_FILE, " simple test")); 813 pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE);814 813 for (i=0; i<PJ_ARRAY_SIZE(uri_test_array); ++i) { 814 pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE); 815 815 status = do_uri_test(pool, &uri_test_array[i]); 816 pjsip_endpt_release_pool(endpt, pool); 816 817 if (status != PJ_SUCCESS) { 817 818 PJ_LOG(3,(THIS_FILE, " error %d when testing entry %d", … … 820 821 } 821 822 } 822 pjsip_endpt_release_pool(endpt, pool);823 823 824 824 return 0; … … 828 828 { 829 829 unsigned i, loop; 830 pj_pool_t *pool;831 830 pj_status_t status; 832 831 pj_timestamp zero; … … 843 842 var.cmp_time.u32.hi = var.cmp_time.u32.lo = 0; 844 843 for (loop=0; loop<LOOP_COUNT; ++loop) { 845 pool = pjsip_endpt_create_pool(endpt, "", POOL_SIZE, POOL_SIZE);846 844 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); 847 847 status = do_uri_test(pool, &uri_test_array[i]); 848 pjsip_endpt_release_pool(endpt, pool); 848 849 if (status != PJ_SUCCESS) { 849 850 PJ_LOG(3,(THIS_FILE, " error %d when testing entry %d", … … 853 854 } 854 855 } 855 pjsip_endpt_release_pool(endpt, pool);856 856 } 857 857
Note: See TracChangeset
for help on using the changeset viewer.