Commit fcac2576 authored by Pekka Pessi's avatar Pekka Pessi

test_s2.c: turn on s2 tport log if environment variable S2_TPORT_LOG is set

darcs-hash:20080910132958-db55f-e4e5a11fdb7b4f6522f648d12c7b98ca74dce24b.gz
parent 484c1e6a
......@@ -785,7 +785,7 @@ s2_generate_tag(su_home_t *home)
void s2_case(char const *number,
char const *title,
char const *desciption)
char const *description)
{
_s2case = number;
}
......@@ -917,7 +917,9 @@ s2_setup_tport(char const * const *protocols,
ta_start(ta, tag, value);
if (s2->master == NULL) {
s2->master = tport_tcreate(s2, s2_stack, s2->root, ta_tags(ta));
s2->master = tport_tcreate(s2, s2_stack, s2->root,
TPTAG_LOG(getenv("S2_TPORT_LOG") != NULL),
ta_tags(ta));
if (s2->master == NULL) {
assert(s2->master);
......@@ -1488,7 +1490,7 @@ nua_t *s2_nua_setup(tag_type_t tag, tag_value_t value, ...)
s2_setup_dns();
s2_setup_logs(0);
s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END());
s2_setup_tport(NULL, TAG_END());
assert(s2->contact);
/* enable/disable multithreading */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment