Changeset 4728 for pjproject/trunk/pjlib/src/pjlib-test/test.c
- Timestamp:
- Feb 4, 2014 10:13:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/test.c
r4712 r4728 1 1 /* $Id$ */ 2 /* 2 /* 3 3 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) 4 4 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> … … 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 #include "test.h" … … 39 39 const char *param_echo_server = ECHO_SERVER_ADDRESS; 40 40 int param_echo_port = ECHO_SERVER_START_PORT; 41 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 41 int param_log_decor = PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 42 42 PJ_LOG_HAS_MICRO_SEC; 43 43 … … 64 64 return rc; 65 65 } 66 66 67 67 //pj_dump_config(); 68 68 pj_caching_pool_init( &caching_pool, NULL, 0 ); … … 99 99 DO_TEST( string_test() ); 100 100 #endif 101 101 102 102 #if INCLUDE_FIFOBUF_TEST 103 103 DO_TEST( fifobuf_test() ); … … 185 185 param_echo_sock_type = pj_SOCK_DGRAM(); 186 186 187 echo_client( param_echo_sock_type, 188 param_echo_server, 187 echo_client( param_echo_sock_type, 188 param_echo_server, 189 189 param_echo_port); 190 190 #endif … … 197 197 198 198 PJ_LOG(3,("test", "")); 199 199 200 200 pj_thread_get_stack_info(pj_thread_this(), &filename, &line); 201 PJ_LOG(3,("test", "Stack max usage: %u, deepest: %s:%u", 201 PJ_LOG(3,("test", "Stack max usage: %u, deepest: %s:%u", 202 202 pj_thread_get_stack_max_usage(pj_thread_this()), 203 203 filename, line)); … … 206 206 else 207 207 PJ_LOG(3,("test", "Test completed with error(s)")); 208 208 209 209 pj_shutdown(); 210 210 211 211 return 0; 212 212 } … … 217 217 { 218 218 PJ_USE_EXCEPTION; 219 220 pj_AF_INET();221 219 222 220 PJ_TRY { … … 225 223 PJ_CATCH_ANY { 226 224 int id = PJ_GET_EXCEPTION(); 227 PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 225 PJ_LOG(3,("test", "FATAL: unhandled exception id %d (%s)", 228 226 id, pj_exception_id_name(id))); 229 227 }
Note: See TracChangeset
for help on using the changeset viewer.