Commit 881f0f54 authored by Pekka Pessi's avatar Pekka Pessi

Fixed NTA API test for SigComp options (they are now always processed).

darcs-hash:20060417072329-65a35-e9283298cad16ea4adae048bf431da924c1b6975.gz
parent 6d4247af
......@@ -472,7 +472,6 @@ int api_test_params(agent_t *ag)
int use_naptr = -1;
int use_srv = -1;
unsigned preload = (unsigned)-1;
int have_sigcomp = sofia_sip_has_sigcomp != NULL;
char const *s = NONE;
TEST_1(nta = nta_agent_create(ag->ag_root, (url_string_t *)"sip:*:*",
......@@ -537,21 +536,18 @@ int api_test_params(agent_t *ag)
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS("sip"),
TAG_END()), have_sigcomp);
TAG_END()), 1);
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS(","),
TAG_END()), -have_sigcomp);
TAG_END()), -1);
TEST(nta_agent_set_params(nta,
NTATAG_SIGCOMP_OPTIONS("sip;dms=16384"),
TAG_END()), have_sigcomp);
TAG_END()), 1);
s = NONE;
TEST(nta_agent_get_params(nta,
NTATAG_SIGCOMP_OPTIONS_REF(s),
TAG_END()), 1);
if (have_sigcomp)
TEST_S(s, "sip;dms=16384");
else
TEST(s, NULL);
TEST_S(s, "sip;dms=16384");
TEST_VOID(nta_agent_destroy(nta));
......
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