tester: fix failing remote provisioning test

parent 6c456f43
[misc]
config-uri=file://./rcfiles/marie_remote_localfile2_rc
config-uri=file://marie_remote_localfile2_rc
......@@ -113,7 +113,17 @@ static void remote_provisioning_file(void) {
#elif defined(LINPHONE_WINDOWS_UNIVERSAL)
marie = linphone_core_manager_new2("marie_remote_localfile_win10_rc", FALSE);
#else
marie = linphone_core_manager_new2("marie_remote_localfile_rc", FALSE);
marie = ms_new0(LinphoneCoreManager, 1);
linphone_core_manager_init(marie, "marie_remote_localfile_rc");
// fix relative path to absolute path
{
char* path = bc_tester_res("rcfiles/marie_remote_localfile2_rc");
char* abspath = ms_strdup_printf("file://%s", path);
lp_config_set_string(marie->lc->config, "misc", "config-uri", abspath);
linphone_core_manager_start(marie, 1);
ms_free(path);
ms_free(abspath);
}
#endif
BC_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneConfiguringSuccessful,1));
......
......@@ -385,7 +385,7 @@ LinphoneCoreManager* linphone_core_manager_new( const char* rc_file) {
return manager;
}
LinphoneCoreManager* linphone_core_manager_new2( const char* rc_file, int check_for_proxies) {
LinphoneCoreManager* linphone_core_manager_new2(const char* rc_file, int check_for_proxies) {
LinphoneCoreManager *manager = ms_new0(LinphoneCoreManager, 1);
linphone_core_manager_init(manager, rc_file);
linphone_core_manager_start(manager, check_for_proxies);
......
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