Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sofia-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
external
sofia-sip
Commits
aadcba88
Commit
aadcba88
authored
Aug 13, 2010
by
Pekka Pessi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test msg_fragment_clear_chain().
parent
eb3c3dff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
test_msg.c
libsofia-sip-ua/msg/test_msg.c
+11
-1
No files found.
libsofia-sip-ua/msg/test_msg.c
View file @
aadcba88
...
...
@@ -606,7 +606,7 @@ int test_msg_parsing(void)
msg_status_t
*
status
;
msg_content_location_t
*
location
;
msg_content_language_t
*
language
;
msg_accept_language_t
*
se
;
msg_accept_language_t
*
en
,
*
se
;
msg_separator_t
*
separator
;
msg_payload_t
*
payload
;
...
...
@@ -614,7 +614,9 @@ int test_msg_parsing(void)
msg
=
read_msg
(
"GET a-life HTTP/1.1"
CRLF
"Content-Length: 6"
CRLF
"Accept-Encoding: bzip2"
CRLF
"Accept-Language: en;q=0.8, fi, se ; q = 0.6"
CRLF
"Accept-Encoding: gzip"
CRLF
"Foo: bar"
CRLF
CRLF
"test"
CRLF
);
...
...
@@ -671,6 +673,14 @@ int test_msg_parsing(void)
TEST
(
vi
,
0
);
}
/* Test msg_fragment_clear_chain() */
en
=
tst
->
msg_accept_language
;
TEST_1
(
en
->
aa_common
->
h_data
!=
NULL
);
msg_fragment_clear_chain
((
msg_header_t
*
)
en
->
aa_next
->
aa_next
);
TEST_1
(
en
->
aa_common
->
h_data
==
NULL
);
TEST_1
(
en
->
aa_next
->
aa_common
->
h_data
==
NULL
);
TEST_1
(
en
->
aa_next
->
aa_next
->
aa_common
->
h_data
==
NULL
);
msg_destroy
(
msg
);
/* Bug #2624: */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment