diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-06-07 15:46:07 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-06-07 15:46:07 +0000 |
commit | e68f0dccae7b69deb6289a7c4b9848ca31f45581 (patch) | |
tree | 5a20998b5fdb5a3affb9da4a22f92be43491aa69 /pjlib-util/src/pjlib-util-test/test.c | |
parent | cf3e59422ac20f20e7209e02a90c8c08085e2100 (diff) |
Ticket #326: Add DNS resolver and DNS SRV resolver test in pjlib-util
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1347 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/src/pjlib-util-test/test.c')
-rw-r--r-- | pjlib-util/src/pjlib-util-test/test.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pjlib-util/src/pjlib-util-test/test.c b/pjlib-util/src/pjlib-util-test/test.c index 599b72e3..cce1f2f2 100644 --- a/pjlib-util/src/pjlib-util-test/test.c +++ b/pjlib-util/src/pjlib-util-test/test.c @@ -18,6 +18,7 @@ */ #include "test.h" #include <pjlib.h> +#include <pjlib-util.h> void app_perror(const char *msg, pj_status_t rc) { @@ -49,7 +50,7 @@ static int test_inner(void) mem = &caching_pool.factory; - pj_log_set_level(3); + pj_log_set_level(5); pj_log_set_decor(PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_TIME | PJ_LOG_HAS_MICRO_SEC); @@ -58,7 +59,10 @@ static int test_inner(void) app_perror("pj_init() error!!", rc); return rc; } - + + rc = pjlib_util_init(); + pj_assert(rc == 0); + pj_dump_config(); pj_caching_pool_init( &caching_pool, &pj_pool_factory_default_policy, 0 ); @@ -75,6 +79,10 @@ static int test_inner(void) DO_TEST(stun_test()); #endif +#if INCLUDE_RESOLVER_TEST + DO_TEST(resolver_test()); +#endif + on_return: return rc; } |