Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
aadad2dd
Commit
aadad2dd
authored
9 years ago
by
Gautier Pelloux-Prayer
Browse files
Options
Download
Patches
Plain Diff
tester: update bc_tester_utils
parent
32eb45df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
.gitignore
mediastreamer2
+1
-1
mediastreamer2
tester/common/bc_tester_utils.c
+4
-3
tester/common/bc_tester_utils.c
with
6 additions
and
4 deletions
.gitignore
+
1
−
0
View file @
aadad2dd
...
...
@@ -97,3 +97,4 @@ tester/stereo-record.wav
.dirstamp
git-clang-format.diff
*.log
.bc_tester_utils.tmp
This diff is collapsed.
Click to expand it.
mediastreamer2
@
27fc72b2
Subproject commit 2
62c1ca2e48d5c0eedae86cc36579bacd234ee48
Subproject commit 2
7fc72b2dc288ed15db9802ab9978b2e82d53cf2
This diff is collapsed.
Click to expand it.
tester/common/bc_tester_utils.c
+
4
−
3
View file @
aadad2dd
...
...
@@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static
char
*
bc_tester_resource_dir_prefix
=
NULL
;
// by default writable will always write near the executable
static
char
*
bc_tester_writable_dir_prefix
=
"."
;
static
char
*
bc_tester_writable_dir_prefix
=
NULL
;
int
bc_printf_verbosity_info
;
int
bc_printf_verbosity_error
;
...
...
@@ -392,7 +392,7 @@ static void detect_res_prefix(const char* prog) {
}
if
(
prefix
!=
NULL
)
{
if
(
bc_tester_resource_dir_prefix
!
=
NULL
)
{
if
(
bc_tester_resource_dir_prefix
=
=
NULL
)
{
printf
(
"Resource directory set to %s
\n
"
,
prefix
);
bc_tester_set_resource_dir_prefix
(
prefix
);
}
...
...
@@ -406,7 +406,7 @@ static void detect_res_prefix(const char* prog) {
// check that we can write in writable directory
if
(
bc_tester_writable_dir_prefix
!=
NULL
)
{
writable_file
=
fopen
(
"bc_tester_utils.tmp"
,
"w"
);
writable_file
=
fopen
(
"
.
bc_tester_utils.tmp"
,
"w"
);
if
(
writable_file
)
{
fclose
(
writable_file
);
}
...
...
@@ -431,6 +431,7 @@ void bc_tester_init(void (*ftester_printf)(int level, const char *format, va_lis
tester_printf_va
=
ftester_printf
;
bc_printf_verbosity_error
=
iverbosity_error
;
bc_printf_verbosity_info
=
iverbosity_info
;
bc_tester_writable_dir_prefix
=
strdup
(
"."
);
}
void
bc_tester_set_max_vm
(
long
max_vm_kb
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets