Changeset 1347 for pjproject/trunk
- Timestamp:
- Jun 7, 2007 3:46:07 PM (17 years ago)
- Location:
- pjproject/trunk/pjlib-util/src/pjlib-util-test
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/main.c
r1001 r1347 18 18 */ 19 19 #include "test.h" 20 #include <pj/string.h> 20 21 21 22 #if defined(PJ_SUNOS) && PJ_SUNOS!=0 … … 49 50 rc = test_main(); 50 51 52 if (argc==2 && pj_ansi_strcmp(argv[1], "-i")==0) { 53 char s[10]; 54 55 puts("Press ENTER to quit"); 56 fgets(s, sizeof(s), stdin); 57 } 58 51 59 return rc; 52 60 } -
pjproject/trunk/pjlib-util/src/pjlib-util-test/test.c
r1003 r1347 19 19 #include "test.h" 20 20 #include <pjlib.h> 21 #include <pjlib-util.h> 21 22 22 23 void app_perror(const char *msg, pj_status_t rc) … … 50 51 mem = &caching_pool.factory; 51 52 52 pj_log_set_level( 3);53 pj_log_set_level(5); 53 54 pj_log_set_decor(PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | 54 55 PJ_LOG_HAS_MICRO_SEC); … … 59 60 return rc; 60 61 } 61 62 63 rc = pjlib_util_init(); 64 pj_assert(rc == 0); 65 62 66 pj_dump_config(); 63 67 pj_caching_pool_init( &caching_pool, &pj_pool_factory_default_policy, 0 ); … … 74 78 #if INCLUDE_STUN_TEST 75 79 DO_TEST(stun_test()); 80 #endif 81 82 #if INCLUDE_RESOLVER_TEST 83 DO_TEST(resolver_test()); 76 84 #endif 77 85 -
pjproject/trunk/pjlib-util/src/pjlib-util-test/test.h
r1003 r1347 22 22 #define INCLUDE_ENCRYPTION_TEST 1 23 23 #define INCLUDE_STUN_TEST 1 24 #define INCLUDE_RESOLVER_TEST 1 24 25 25 26 extern int xml_test(void); … … 28 29 extern int stun_test(); 29 30 extern int test_main(void); 31 extern int resolver_test(void); 30 32 31 33 extern void app_perror(const char *title, pj_status_t rc);
Note: See TracChangeset
for help on using the changeset viewer.