Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
d1907a0d
Commit
d1907a0d
authored
Sep 10, 2015
by
Gautier Pelloux-Prayer
Browse files
tester.c: fix resource directory path
parent
d638129f
Changes
2
Hide whitespace changes
Inline
Side-by-side
mediastreamer2
@
e9b2d8d4
Subproject commit
93cf916ac44dea93db7744b1d66ea3655c8345d9
Subproject commit
e9b2d8d4e1ce790f72b1c02c3d3242651f22672d
tester/liblinphone_tester.c
View file @
d1907a0d
...
...
@@ -196,12 +196,12 @@ int main (int argc, char *argv[])
liblinphone_tester_init
(
NULL
);
if
(
strstr
(
argv
[
0
],
".libs"
)
&&
argv
[
0
][
0
]
==
'/'
)
{
char
res_dir
[
128
]
=
{
0
};
// this allows to launch liblinphone_tester from outside of tester directory
strncpy
(
res_dir
,
argv
[
0
],
strstr
(
argv
[
0
],
".libs"
)
-
argv
[
0
]
);
bc_tester_set_
resourc
e_dir_prefix
(
re
s_dir
);
bc_tester_set_writable_dir_prefix
(
res_dir
);
// this allows to launch liblinphone_tester from outside of tester directory
if
(
strstr
(
argv
[
0
],
".libs"
))
{
char
*
prefix
=
ms_strdup_printf
(
"%s%s"
,
argv
[
0
][
0
]
==
'/'
?
""
:
"./"
,
strstr
(
argv
[
0
],
".libs"
));
bc_tester_set_resource_dir_prefix
(
prefix
);
bc_tester_set_
writabl
e_dir_prefix
(
p
re
fix
);
ms_free
(
prefix
);
}
for
(
i
=
1
;
i
<
argc
;
++
i
)
{
...
...
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