Commit 9c60087e authored by Simon Morlat's avatar Simon Morlat

fix build issue and add a --silent option to tester (no warning, no errors, only fatal)

parent e798d0dc
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment