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
belle-sip
Commits
56436814
Commit
56436814
authored
Jul 06, 2017
by
Ghislain MARY
Browse files
Fix belle-sip-tester for Windows Universal.
parent
5364b6e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tester/belle_sip_tester_windows.cpp
tester/belle_sip_tester_windows.cpp
+2
-2
No files found.
tester/belle_sip_tester_windows.cpp
View file @
56436814
...
...
@@ -46,7 +46,7 @@ static void nativeOutputTraceHandler(int lev, const char *fmt, va_list args)
}
}
static
void
belleSipNativeOutputTraceHandler
(
const
char
*
domain
,
BctbxLogLevel
lev
,
const
char
*
fmt
,
va_list
args
)
static
void
belleSipNativeOutputTraceHandler
(
void
*
info
,
const
char
*
domain
,
BctbxLogLevel
lev
,
const
char
*
fmt
,
va_list
args
)
{
nativeOutputTraceHandler
((
int
)
lev
,
fmt
,
args
);
}
...
...
@@ -103,6 +103,7 @@ bool NativeTester::run(Platform::String^ suiteName, Platform::String^ caseName,
std
::
wstring
wscasename
=
caseName
->
Data
();
char
csuitename
[
MAX_SUITE_NAME_SIZE
]
=
{
0
};
char
ccasename
[
MAX_SUITE_NAME_SIZE
]
=
{
0
};
bctbx_log_handler_t
*
log_handler
=
bctbx_create_log_handler
(
belleSipNativeOutputTraceHandler
,
NULL
,
NULL
);
wcstombs
(
csuitename
,
wssuitename
.
c_str
(),
sizeof
(
csuitename
));
wcstombs
(
ccasename
,
wscasename
.
c_str
(),
sizeof
(
ccasename
));
...
...
@@ -112,7 +113,6 @@ bool NativeTester::run(Platform::String^ suiteName, Platform::String^ caseName,
else
{
belle_sip_set_log_level
(
BELLE_SIP_LOG_ERROR
);
}
bctbx_log_handler_t
*
log_handler
=
bctbx_create_log_handler
(
belleSipNativeOutputTraceHandler
,
NULL
,
NULL
);
bctbx_add_log_handler
(
log_handler
);
return
bc_tester_run_tests
(
wssuitename
==
all
?
0
:
csuitename
,
wscasename
==
all
?
0
:
ccasename
,
NULL
)
!=
0
;
}
...
...
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