diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-03-05 11:59:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-03-05 11:59:54 +0000 |
commit | 22da209226aac2c65f45900e55cf5f162cd311d4 (patch) | |
tree | 6ab301e7c4b749be0683e50760c8b50da1c9e5e2 /pjsip/src/test/test.c | |
parent | 1f3242dc1324388f45e1ed939d7656352dd92f7e (diff) |
Implementation of Re #1628: Modify SIP transaction to use group lock to avoid deadlock etc.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4420 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test/test.c')
-rw-r--r-- | pjsip/src/test/test.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pjsip/src/test/test.c b/pjsip/src/test/test.c index 8ffe5664..0361e617 100644 --- a/pjsip/src/test/test.c +++ b/pjsip/src/test/test.c @@ -47,9 +47,10 @@ pjsip_endpoint *endpt; +pj_caching_pool caching_pool; int log_level = 3; int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | - PJ_LOG_HAS_MICRO_SEC; + PJ_LOG_HAS_MICRO_SEC | PJ_LOG_HAS_INDENT; static pj_oshandle_t fd_report; const char *system_name = "Unknown"; @@ -223,7 +224,6 @@ static void close_report(void) int test_main(void) { pj_status_t rc; - pj_caching_pool caching_pool; const char *filename; unsigned tsx_test_cnt=0; struct tsx_test_param tsx_test[10]; @@ -369,6 +369,12 @@ int test_main(void) DO_TEST(regc_test()); #endif + /* + * Better be last because it recreates the endpt + */ +#if INCLUDE_TSX_DESTROY_TEST + DO_TEST(tsx_destroy_test()); +#endif on_return: flush_events(500); |