From 0eda4c72a47a18469143d1d8a3b3d8988182a283 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Tue, 9 Jan 2018 16:55:06 +0100 Subject: [PATCH] Fixing regid on register test --- tester/register_tester.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tester/register_tester.c b/tester/register_tester.c index 6e5f3a104..dc53de9fa 100644 --- a/tester/register_tester.c +++ b/tester/register_tester.c @@ -1246,14 +1246,14 @@ static void multi_devices_register_with_gruu(void) { linphone_core_add_supported_tag(marie->lc,"gruu"); linphone_core_manager_start(marie,TRUE); LinphoneProxyConfig *cfg=linphone_core_get_default_proxy_config(marie->lc); - + if(cfg) { const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg); BC_ASSERT_PTR_NOT_NULL(addr); BC_ASSERT_STRING_EQUAL(linphone_address_get_domain(addr),linphone_proxy_config_get_domain(cfg)); BC_ASSERT_TRUE(linphone_address_has_uri_param(addr,"gr")); } - + linphone_core_set_network_reachable(marie->lc,FALSE); /*to make sure first instance is not unregistered*/ linphone_core_manager_destroy(marie); @@ -1268,7 +1268,7 @@ static void multi_devices_register_with_gruu(void) { BC_ASSERT_STRING_EQUAL(linphone_address_get_domain(addr),linphone_proxy_config_get_domain(cfg)); BC_ASSERT_TRUE(linphone_address_has_uri_param(addr,"gr")); } - + linphone_core_manager_destroy(marie); } @@ -1280,7 +1280,7 @@ static void register_without_regid(void) { if(cfg) { const LinphoneAddress *addr = linphone_proxy_config_get_contact(cfg); BC_ASSERT_PTR_NOT_NULL(addr); - BC_ASSERT_PTR_NOT_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid")); + BC_ASSERT_PTR_NULL(strstr(linphone_address_as_string_uri_only(addr), "regid")); } linphone_core_manager_destroy(marie); }