diff options
Diffstat (limited to 'pjnath/src/pjnath-test')
-rw-r--r-- | pjnath/src/pjnath-test/ice_test.c | 11 | ||||
-rw-r--r-- | pjnath/src/pjnath-test/test.c | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/pjnath/src/pjnath-test/ice_test.c b/pjnath/src/pjnath-test/ice_test.c index f8673356..d9a97ee6 100644 --- a/pjnath/src/pjnath-test/ice_test.c +++ b/pjnath/src/pjnath-test/ice_test.c @@ -459,7 +459,11 @@ int ice_test(void) pj_stun_config_init(&stun_cfg, mem, 0, ioqueue, timer_heap); - //pj_log_set_level(4); +#if 1 + pj_log_set_level(5); +#endif + + goto test; /* Basic create/destroy */ rc = ice_basic_create_destroy_test(); @@ -487,10 +491,13 @@ int ice_test(void) goto on_return; /* Direct communication with two components */ +test: rc = perform_ice_test("With two components (RTP and RTCP)", PJ_TRUE, 2, PJ_TRUE, D1, D2, 0, NULL, 0, NULL); if (rc != 0) goto on_return; + goto on_return; + /* Direct communication with mismatch number of components */ /* Direct communication with 2 components and 2 invalid address */ @@ -501,7 +508,7 @@ int ice_test(void) on_return: - //pj_log_set_level(3); + pj_log_set_level(3); pj_ioqueue_destroy(stun_cfg.ioqueue); pj_pool_release(pool); return rc; diff --git a/pjnath/src/pjnath-test/test.c b/pjnath/src/pjnath-test/test.c index 6cc829d5..3dc2085d 100644 --- a/pjnath/src/pjnath-test/test.c +++ b/pjnath/src/pjnath-test/test.c @@ -49,9 +49,11 @@ static int test_inner(void) mem = &caching_pool.factory; +#if 0 pj_log_set_level(3); pj_log_set_decor(PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | PJ_LOG_HAS_MICRO_SEC); +#endif rc = pj_init(); if (rc != 0) { |