From 2ae4719376dad8ae54106cfd2ab6357d1b110993 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 14 Apr 2014 10:38:03 +0200 Subject: [PATCH] change some registration test to wait until registration cleared to arive --- mediastreamer2 | 2 +- tester/register_tester.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mediastreamer2 b/mediastreamer2 index b76e3dde1..34ced9269 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit b76e3dde111af0d24be4ac5f1d4f633361e654c1 +Subproject commit 34ced9269b1e8f8272b25f627db37dc12ce05317 diff --git a/tester/register_tester.c b/tester/register_tester.c index a0d63e278..0798bd61f 100644 --- a/tester/register_tester.c +++ b/tester/register_tester.c @@ -567,11 +567,17 @@ static void io_recv_error_without_active_register(){ for (proxys=ms_list_copy(linphone_core_get_proxy_config_list(lc));proxys!=NULL;proxys=proxys->next) { LinphoneProxyConfig* proxy_cfg=(LinphoneProxyConfig*)proxys->data; linphone_proxy_config_edit(proxy_cfg); + } + ms_list_free(proxys); + /*wait for unregistrations*/ + CU_ASSERT_TRUE(wait_for(lc,lc,&counters->number_of_LinphoneRegistrationCleared,register_ok /*because 1 udp*/)); + + for (proxys=ms_list_copy(linphone_core_get_proxy_config_list(lc));proxys!=NULL;proxys=proxys->next) { + LinphoneProxyConfig* proxy_cfg=(LinphoneProxyConfig*)proxys->data; linphone_proxy_config_enable_register(proxy_cfg,FALSE); linphone_proxy_config_done(proxy_cfg); } ms_list_free(proxys); - CU_ASSERT_TRUE(wait_for(lc,lc,&counters->number_of_LinphoneRegistrationCleared,register_ok /*because 1 udp*/)); sal_set_recv_error(lc->sal, 0);