Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
6b16df21
Commit
6b16df21
authored
Jul 31, 2019
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-turn: Initialize variable earlier to avoid race
parent
b6925dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tests/test-turn.c
tests/test-turn.c
+4
-3
No files found.
tests/test-turn.c
View file @
6b16df21
...
@@ -222,6 +222,10 @@ run_test(guint turn_port, gboolean is_ipv6,
...
@@ -222,6 +222,10 @@ run_test(guint turn_port, gboolean is_ipv6,
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
localhost
,
turn_port
,
TURN_USER
,
TURN_PASS
,
turn_type
);
localhost
,
turn_port
,
TURN_USER
,
TURN_PASS
,
turn_type
);
g_assert
(
global_lagent_gathering_done
==
FALSE
);
g_assert
(
global_ragent_gathering_done
==
FALSE
);
g_debug
(
"test-turn: Added streams, running context until 'candidate-gathering-done'..."
);
/* Gather candidates and test nice_agent_set_port_range */
/* Gather candidates and test nice_agent_set_port_range */
g_assert
(
nice_agent_gather_candidates
(
lagent
,
ls_id
)
==
TRUE
);
g_assert
(
nice_agent_gather_candidates
(
lagent
,
ls_id
)
==
TRUE
);
g_assert
(
nice_agent_gather_candidates
(
ragent
,
rs_id
)
==
TRUE
);
g_assert
(
nice_agent_gather_candidates
(
ragent
,
rs_id
)
==
TRUE
);
...
@@ -231,9 +235,6 @@ run_test(guint turn_port, gboolean is_ipv6,
...
@@ -231,9 +235,6 @@ run_test(guint turn_port, gboolean is_ipv6,
nice_agent_attach_recv
(
ragent
,
rs_id
,
NICE_COMPONENT_TYPE_RTP
,
nice_agent_attach_recv
(
ragent
,
rs_id
,
NICE_COMPONENT_TYPE_RTP
,
g_main_context_default
(),
cb_nice_recv
,
GUINT_TO_POINTER
(
2
));
g_main_context_default
(),
cb_nice_recv
,
GUINT_TO_POINTER
(
2
));
g_assert
(
global_lagent_gathering_done
==
FALSE
);
g_assert
(
global_ragent_gathering_done
==
FALSE
);
g_debug
(
"test-turn: Added streams, running context until 'candidate-gathering-done'..."
);
while
(
!
global_lagent_gathering_done
)
while
(
!
global_lagent_gathering_done
)
g_main_context_iteration
(
NULL
,
TRUE
);
g_main_context_iteration
(
NULL
,
TRUE
);
g_assert
(
global_lagent_gathering_done
==
TRUE
);
g_assert
(
global_lagent_gathering_done
==
TRUE
);
...
...
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