Commit c7998b98 authored by Simon Morlat's avatar Simon Morlat

lure compiler and repair test

parent 5bc59dc2
......@@ -428,10 +428,11 @@ void testUriComponentsChecker() {
}
void test_escaping_bad_chars(void){
char bad_uri[15] = { 'h', 'e', 'l', 'l', 'o', (char)0xa0, (char)0xa0, (char)0xc8, (char)0xc8, 'w', 'o', 'r', 'l', 'd', 0x0 };
char bad_uri[15] = { 'h', 'e', 'l', 'l', 'o', (char)0xa0, (char)0xc8, 'w', 'o', 'r', 'l', 'd', 0x0 };
char *escaped = belle_sip_uri_to_escaped_username(bad_uri);
const char *expected="hello%a0%c8world";
BC_ASSERT_STRING_EQUAL(escaped, "hello%%a0%%c8world");
BC_ASSERT_STRING_EQUAL(escaped, expected);
belle_sip_free(escaped);
}
......
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