mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix build issue and add a --silent option to tester (no warning, no errors, only fatal)
This commit is contained in:
parent
e798d0dc65
commit
9c60087e55
2 changed files with 6 additions and 1 deletions
|
|
@ -372,11 +372,12 @@ static void linphone_android_ortp_log_handler(OrtpLogLevel lev, const char *fmt,
|
|||
void helper(const char *name) {
|
||||
fprintf(stderr,"%s \t--help\n"
|
||||
"\t\t\t--verbose\n"
|
||||
"\t\t\t--silent\n"
|
||||
"\t\t\t--list-suites\n"
|
||||
"\t\t\t--list-tests <suite>\n"
|
||||
"\t\t\t--config <config path>\n"
|
||||
"\t\t\t--domain <test sip domain>\n"
|
||||
"\t\t\t---auth-domain <test auth domain>\n"
|
||||
"\t\t\t--auth-domain <test auth domain>\n"
|
||||
#if HAVE_CU_GET_SUITE
|
||||
"\t\t\t--suite <suite name>\n"
|
||||
"\t\t\t--test <test name>\n"
|
||||
|
|
@ -412,6 +413,8 @@ int main (int argc, char *argv[]) {
|
|||
#else
|
||||
linphone_core_enable_logs_with_cb(linphone_android_ortp_log_handler);
|
||||
#endif
|
||||
} else if (strcmp(argv[i],"--silent")==0){
|
||||
ortp_set_log_level_mask(ORTP_FATAL);
|
||||
} else if (strcmp(argv[i],"--domain")==0){
|
||||
CHECK_ARG("--domain", ++i, argc);
|
||||
test_domain=argv[i];
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@ static void upnp_start_n_stop(void) {
|
|||
int tmp = 0;
|
||||
LinphoneCoreManager* lc_upnp = linphone_core_manager_new2(liblinphone_tester_file_prefix, "upnp_rc", FALSE);
|
||||
wait_for(lc_upnp->lc,lc_upnp->lc,&tmp,1);
|
||||
#ifdef BUILD_UPNP
|
||||
CU_ASSERT_TRUE(lc_upnp->lc->upnp != NULL);
|
||||
#endif
|
||||
linphone_core_manager_destroy(lc_upnp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue