mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 11:19:30 +00:00
fix tests
This commit is contained in:
parent
1abb2429fb
commit
a47a9a9c06
2 changed files with 13 additions and 3 deletions
|
|
@ -675,6 +675,7 @@ static void call_with_sips_not_achievable(void){
|
|||
if (ei){
|
||||
BC_ASSERT_EQUAL(linphone_error_info_get_reason(ei), LinphoneReasonTemporarilyUnavailable, int, "%d");
|
||||
}
|
||||
linphone_call_unref(call);
|
||||
|
||||
linphone_core_manager_destroy(marie);
|
||||
linphone_core_manager_destroy(pauline1);
|
||||
|
|
@ -946,7 +947,7 @@ static void dos_module_trigger(void) {
|
|||
} while (i < number_of_messge_to_send);
|
||||
// At this point we should be banned for a minute
|
||||
|
||||
ms_usleep(65000000); // Wait several seconds to ensure we are not banned anymore
|
||||
ms_sleep(65); // Wait several seconds to ensure we are not banned anymore
|
||||
BC_ASSERT_LOWER(marie->stat.number_of_LinphoneMessageReceived, number_of_messge_to_send, int, "%d");
|
||||
|
||||
reset_counters(&marie->stat);
|
||||
|
|
@ -1203,7 +1204,7 @@ test_t flexisip_tests[] = {
|
|||
TEST_NO_TAG("Call forking not responded", call_forking_not_responded),
|
||||
TEST_NO_TAG("Early-media call forking", early_media_call_forking),
|
||||
TEST_NO_TAG("Call with sips", call_with_sips),
|
||||
TEST_ONE_TAG("Call with sips not achievable", call_with_sips_not_achievable, "LeaksMemory"),
|
||||
TEST_NO_TAG("Call with sips not achievable", call_with_sips_not_achievable),
|
||||
TEST_NO_TAG("Call ipv6 to ipv6", call_with_ipv6),
|
||||
TEST_NO_TAG("Call ipv6 to ipv4", call_ipv6_to_ipv4),
|
||||
TEST_NO_TAG("Call ipv4 to ipv6", call_ipv4_to_ipv6),
|
||||
|
|
@ -1212,7 +1213,7 @@ test_t flexisip_tests[] = {
|
|||
/*TEST_ONE_TAG("Subscribe Notify with sipp double publish", test_subscribe_notify_with_sipp_publisher_double_publish, "LeaksMemory"),*/
|
||||
#endif
|
||||
TEST_NO_TAG("Publish/unpublish", test_publish_unpublish),
|
||||
TEST_ONE_TAG("List subscribe", test_list_subscribe,"LeaksMemory"),
|
||||
TEST_NO_TAG("List subscribe", test_list_subscribe),
|
||||
TEST_NO_TAG("File transfer message rcs to external body client", file_transfer_message_rcs_to_external_body_client),
|
||||
TEST_ONE_TAG("File transfer message external body to rcs client", file_transfer_message_external_body_to_rcs_client, "LeaksMemory"),
|
||||
TEST_ONE_TAG("File transfer message external body to external body client", file_transfer_message_external_body_to_external_body_client, "LeaksMemory"),
|
||||
|
|
|
|||
|
|
@ -47,11 +47,19 @@ static void linphone_stun_test_encode(void)
|
|||
|
||||
static void linphone_stun_test_grab_ip(void)
|
||||
{
|
||||
|
||||
LinphoneCoreManager* lc_stun = linphone_core_manager_new2("stun_rc", FALSE);
|
||||
LinphoneCall dummy_call;
|
||||
int ping_time;
|
||||
int tmp = 0;
|
||||
|
||||
/*this test verifies the very basic STUN support of liblinphone, which is deprecated.
|
||||
* It works only in IPv4 mode and there is no plan to make it work over ipv6.*/
|
||||
if (liblinphone_tester_ipv4_available()){
|
||||
goto end;
|
||||
}
|
||||
linphone_core_enable_ipv6(lc_stun->lc, FALSE);
|
||||
|
||||
memset(&dummy_call, 0, sizeof(LinphoneCall));
|
||||
dummy_call.main_audio_stream_index = 0;
|
||||
dummy_call.main_video_stream_index = 1;
|
||||
|
|
@ -85,6 +93,7 @@ static void linphone_stun_test_grab_ip(void)
|
|||
#endif
|
||||
ms_message("STUN test result: local text port maps to %s:%i", dummy_call.tc.addr, dummy_call.tc.port);
|
||||
|
||||
end:
|
||||
linphone_core_manager_destroy(lc_stun);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue