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
a8511b2d
Commit
a8511b2d
authored
Aug 05, 2019
by
Olivier Crete
Committed by
Olivier Crête
Aug 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Don't use GSubprocessLauncher
It crashes on Windows
parent
20792d0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
tests/test-fullmode-with-stun.c
tests/test-fullmode-with-stun.c
+5
-10
No files found.
tests/test-fullmode-with-stun.c
View file @
a8511b2d
...
@@ -6,7 +6,6 @@ main (int argc, char ** argv)
...
@@ -6,7 +6,6 @@ main (int argc, char ** argv)
int
retval
=
0
;
int
retval
=
0
;
char
*
stund
;
char
*
stund
;
char
*
test_fullmode
;
char
*
test_fullmode
;
GSubprocessLauncher
*
launcher
;
GSubprocess
*
stund_proc
,
*
test_subprocess
;
GSubprocess
*
stund_proc
,
*
test_subprocess
;
const
gchar
NICE_STUN_SERVER
[]
=
"127.0.0.1"
;
const
gchar
NICE_STUN_SERVER
[]
=
"127.0.0.1"
;
const
gchar
NICE_STUN_SERVER_PORT
[]
=
"3800"
;
const
gchar
NICE_STUN_SERVER_PORT
[]
=
"3800"
;
...
@@ -30,23 +29,19 @@ main (int argc, char ** argv)
...
@@ -30,23 +29,19 @@ main (int argc, char ** argv)
g_usleep
(
G_USEC_PER_SEC
);
g_usleep
(
G_USEC_PER_SEC
);
launcher
=
g_subprocess_launcher_new
(
G_SUBPROCESS_FLAGS_NONE
);
g_setenv
(
"NICE_STUN_SERVER"
,
NICE_STUN_SERVER
,
TRUE
);
g_setenv
(
"NICE_STUN_SERVER_PORT"
,
NICE_STUN_SERVER_PORT
,
TRUE
);
g_subprocess_launcher_setenv
(
launcher
,
"NICE_STUN_SERVER"
,
NICE_STUN_SERVER
,
TRUE
);
g_subprocess_launcher_setenv
(
launcher
,
"NICE_STUN_SERVER_PORT"
,
NICE_STUN_SERVER_PORT
,
TRUE
);
g_print
(
"Running test fullmode as %s
\n
"
,
test_fullmode
);
g_print
(
"Running test fullmode as %s
\n
"
,
test_fullmode
);
test_subprocess
=
g_subprocess_
launcher_spawn
(
launcher
,
&
gerr
,
test_subprocess
=
g_subprocess_
new
(
G_SUBPROCESS_FLAGS_NONE
,
&
gerr
,
test_fullmode
,
NULL
);
test_fullmode
,
NULL
);
g_assert_no_error
(
gerr
);
g_assert_no_error
(
gerr
);
g_subprocess_wait
(
test_subprocess
,
NULL
,
&
gerr
);
g_subprocess_wait
(
test_subprocess
,
NULL
,
&
gerr
);
g_assert_no_error
(
gerr
);
g_assert_no_error
(
gerr
);
retval
=
g_subprocess_get_exit_status
(
test_subprocess
);
retval
=
g_subprocess_get_exit_status
(
test_subprocess
);
g_print
(
"Test process returned %d
\n
"
,
retval
);
g_print
(
"Test process returned %d
\n
"
,
retval
);
g_object_unref
(
test_subprocess
);
g_object_unref
(
test_subprocess
);
g_object_unref
(
launcher
);
g_subprocess_force_exit
(
stund_proc
);
g_subprocess_force_exit
(
stund_proc
);
g_subprocess_wait
(
stund_proc
,
NULL
,
&
gerr
);
g_subprocess_wait
(
stund_proc
,
NULL
,
&
gerr
);
g_assert_no_error
(
gerr
);
g_assert_no_error
(
gerr
);
...
...
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