Commit ca64b71c authored by Pekka Pessi's avatar Pekka Pessi

nua tests: using TEST_P() and TEST_SIZE().

darcs-hash:20061121190002-65a35-5382df852cdb28ee36c6dd9e7257c78e8b2f3999.gz
parent 47e739bf
......@@ -230,11 +230,11 @@ int test_basic_call_1(struct context *ctx)
TEST_1(!nua_handle_by_replaces(b->nua, repb));
TEST_1(nh = nua_handle_by_replaces(a->nua, repb));
TEST(nh, a_call->nh);
TEST_P(nh, a_call->nh);
nua_handle_unref(nh);
TEST_1(nh = nua_handle_by_replaces(b->nua, repa));
TEST(nh, b_call->nh);
TEST_P(nh, b_call->nh);
nua_handle_unref(nh);
/* Client transitions:
......
......@@ -95,7 +95,7 @@ int test_nua_init(struct context *ctx,
TEST_1(temp != -1);
atexit(remove_tmp); /* Make sure temp file is unlinked */
TEST(write(temp, passwd, strlen(passwd)), strlen(passwd));
TEST_SIZE(write(temp, passwd, strlen(passwd)), strlen(passwd));
TEST_1(close(temp) == 0);
......
......@@ -70,8 +70,8 @@ int test_tag_filter(void)
result = tl_afilter(NULL, filter, lst);
TEST_1(result);
TEST(result[0].t_tag, nutag_url);
TEST(result[1].t_tag, nutag_url);
TEST_P(result[0].t_tag, nutag_url);
TEST_P(result[1].t_tag, nutag_url);
tl_vfree(lst);
free(result);
......@@ -560,13 +560,13 @@ int test_nua_params(struct context *ctx)
TEST(refer_with_id, -1);
TEST(substate, -1);
TEST(allow, NONE);
TEST_P(allow, NONE);
TEST_S(allow_str, "NONE");
TEST(supported, NONE);
TEST_P(supported, NONE);
TEST_S(supported_str, "NONE");
TEST(user_agent, NONE);
TEST_P(user_agent, NONE);
TEST_S(user_agent_str, "NONE");
TEST(organization, NONE);
TEST_P(organization, NONE);
TEST_S(organization_str, "NONE");
TEST_S(outbound, "NONE");
......@@ -576,7 +576,7 @@ int test_nua_params(struct context *ctx)
TEST_S(m_features, "NONE");
TEST_S(instance, "NONE");
TEST(registrar->us_url, NONE);
TEST_P(registrar->us_url, NONE);
free_events_in_list(ctx, ctx->a.events);
}
......
......@@ -249,7 +249,7 @@ int test_refer0(struct context *ctx, int refer_with_id, char const *tests)
TEST_1(e = e->next); TEST_E(e->data->e_event, nua_r_refer);
TEST(e->data->e_status, 202);
TEST_1(sip = sip_object(e->data->e_msg));
TEST(strtoul(b_event->o_id, NULL, 10), sip->sip_cseq->cs_seq);
TEST_SIZE(strtoul(b_event->o_id, NULL, 10), sip->sip_cseq->cs_seq);
#if 0
if (!e->next)
run_b_until(ctx, -1, save_until_received);
......
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