tester: fix some broken tests due to latest changes

parent 0506dfe4
......@@ -501,8 +501,8 @@ static void test_session_description(void) {
BC_ASSERT_STRING_EQUAL(belle_sdp_origin_get_address(l_origin),"2a01:e35:1387:1020:6233:4bff:fe0b:5663");
BC_ASSERT_STRING_EQUAL(belle_sdp_origin_get_address_type(l_origin),"IP6");
BC_ASSERT_STRING_EQUAL(belle_sdp_origin_get_network_type(l_origin),"IN");
BC_ASSERT_EQUAL(belle_sdp_origin_get_session_id(l_origin),123, unsigned, "%u");
BC_ASSERT_EQUAL(belle_sdp_origin_get_session_version(l_origin),123, unsigned, "%u");
BC_ASSERT_EQUAL(belle_sdp_origin_get_session_id(l_origin),1239, unsigned, "%u");
BC_ASSERT_EQUAL(belle_sdp_origin_get_session_version(l_origin),1239, unsigned, "%u");
BC_ASSERT_PTR_NOT_NULL(belle_sdp_session_description_get_session_name(l_session_description));
BC_ASSERT_STRING_EQUAL(belle_sdp_session_name_get_value(belle_sdp_session_description_get_session_name(l_session_description)),"SIP Talk");
......
......@@ -212,7 +212,7 @@ static void ipv4_a_query_send_failure(void) {
BC_ASSERT_PTR_NOT_NULL_FATAL(client);
belle_sip_stack_set_resolver_send_error(client->stack, -1);
client->resolver_ctx = belle_sip_stack_resolve_a(client->stack, IPV4_SIP_DOMAIN, SIP_PORT, AF_INET, a_resolve_done, client);
BC_ASSERT_PTR_NOT_NULL(client->resolver_ctx);
BC_ASSERT_PTR_NULL(client->resolver_ctx);
belle_sip_stack_set_resolver_send_error(client->stack, 0);
destroy_endpoint(client);
......@@ -418,7 +418,7 @@ static void no_query_needed(void) {
BC_ASSERT_PTR_NOT_NULL_FATAL(client);
client->resolver_ctx = belle_sip_stack_resolve(client->stack, "udp", IPV4_SIP_IP, SIP_PORT, AF_INET, a_resolve_done, client);
BC_ASSERT_PTR_NOT_NULL(client->resolver_ctx);
BC_ASSERT_PTR_NULL(client->resolver_ctx);
BC_ASSERT_TRUE(client->resolve_done);
BC_ASSERT_PTR_NOT_EQUAL(client->ai_list, NULL);
if (client->ai_list) {
......
......@@ -428,7 +428,7 @@ void testUriComponentsChecker() {
}
void test_escaping_bad_chars(void){
char bad_uri[13] = { 'h', 'e', 'l', 'l', 'o', (char)0xa0, (char)0xc8, 'w', 'o', 'r', 'l', 'd', 0x0 };
char bad_uri[15] = { 'h', 'e', 'l', 'l', 'o', (char)0xa0, (char)0xa0, (char)0xc8, (char)0xc8, 'w', 'o', 'r', 'l', 'd', 0x0 };
char *escaped = belle_sip_uri_to_escaped_username(bad_uri);
BC_ASSERT_STRING_EQUAL(escaped, "hello%%a0%%c8world");
......
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