Commit 2fc10b13 authored by DanmeiChen's avatar DanmeiChen
Browse files

fix some crash for unitest ios

parent ec5331de
......@@ -153,11 +153,11 @@ static void audio_mono_call_opus(void){
}
static void audio_call_loss_resilience(const char *codec_name, int clock_rate, int bitrate_override, int jitterBufferMs, bool_t stereo, std::pair<double,double> threshold ) {
#if !defined(__arm__) && !defined(__arm64__) && !TARGET_IPHONE_SIMULATOR && !defined(__ANDROID__)
LinphoneCoreManager *marie = nullptr, *pauline = nullptr;
char *recordPath = nullptr;
char *referenceFile = bc_tester_res("sounds/vrroom.wav");
#if !defined(__arm__) && !defined(__arm64__) && !TARGET_IPHONE_SIMULATOR && !defined(__ANDROID__)
OrtpNetworkSimulatorParams simparams = { 0 };
PayloadType *mariePt, *paulinePt;
int sampleLength = 6000;
......@@ -258,11 +258,12 @@ static void audio_call_loss_resilience(const char *codec_name, int clock_rate, i
}
end:
#endif
linphone_core_manager_destroy(marie);
linphone_core_manager_destroy(pauline);
bc_free(recordPath);
bc_free(referenceFile);
#endif
}
static void audio_call_loss_resilience_opus(){
......
......@@ -2270,6 +2270,8 @@ static void call_paused_resumed_with_loss(void) {
bool_t pause_call_1(LinphoneCoreManager* mgr_1,LinphoneCall* call_1,LinphoneCoreManager* mgr_2,LinphoneCall* call_2) {
stats initial_call_stat_1=mgr_1->stat;
stats initial_call_stat_2=mgr_2->stat;
BC_ASSERT_PTR_NOT_NULL(call_1);
if (!call_1) return FALSE;
linphone_call_pause(call_1);
BC_ASSERT_TRUE(wait_for(mgr_1->lc,mgr_2->lc,&mgr_1->stat.number_of_LinphoneCallPausing,initial_call_stat_1.number_of_LinphoneCallPausing+1));
BC_ASSERT_TRUE(wait_for(mgr_1->lc,mgr_2->lc,&mgr_1->stat.number_of_LinphoneCallPaused,initial_call_stat_1.number_of_LinphoneCallPaused+1));
......
......@@ -45,3 +45,5 @@ echocancellation=0 #to not overload cpu in case of VG
stun_server=stun.example.org
[tester]
test_env=1
......@@ -46,3 +46,6 @@ stun_server=stun.example.org
[misc]
hide_chat_rooms_from_removed_proxies=0
hide_empty_chat_rooms=0
[tester]
test_env=1
......@@ -42,3 +42,5 @@ echocancellation=0 #to not overload cpu in case of VG
stun_server=stun.linphone.org
[tester]
test_env=1
......@@ -49,3 +49,6 @@ echocancellation=0 #to not overload cpu in case of VG
[net]
stun_server=stun.example.org
[tester]
test_env=1
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