Commit f6c6813f authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

fix tests verbosity: MEDIASTREAMER_DEBUG must be set AND equals to 1

parent 1e6d4d2e
......@@ -125,7 +125,7 @@ MSList * ms_list_concat(MSList *first, MSList *second){
MSList * ms_list_free_with_data(MSList *list, void (*freefunc)(void*)){
MSList *elem;
MSList *tmp;
for (elem=list;elem!=NULL;){
tmp=elem->next;
if (freefunc) freefunc(elem->data);
......@@ -498,8 +498,10 @@ void ms_base_init(){
#endif
#if !defined(_WIN32_WCE)
if (getenv("MEDIASTREAMER_DEBUG")!=NULL){
if (getenv("MEDIASTREAMER_DEBUG")!=NULL && strcmp(getenv("MEDIASTREAMER_DEBUG"),"1")==0){
ortp_set_log_level_mask(ORTP_DEBUG|ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
}else{
ortp_set_log_level_mask(ORTP_FATAL);
}
#endif
//#ifdef ANDROID
......@@ -511,7 +513,7 @@ void ms_base_init(){
for (i=0;ms_base_filter_descs[i]!=NULL;i++){
ms_filter_register(ms_base_filter_descs[i]);
}
#ifdef WIN32 /*fixme to be tested*/
GetSystemInfo( &sysinfo );
......@@ -661,7 +663,7 @@ int ms_concealer_inc_sample_time(MSConcealerContext* obj, uint64_t current_time,
}
unsigned int ms_concealer_context_is_concealement_required(MSConcealerContext* obj,uint64_t current_time) {
if(obj->sample_time == -1) return 0; /*no valid value*/
if (obj->sample_time < current_time){
......@@ -723,7 +725,7 @@ int ms_concealer_ts_context_inc_sample_ts(MSConcealerTsContext* obj, uint64_t cu
unsigned int ms_concealer_ts_context_is_concealement_required(MSConcealerTsContext* obj, uint64_t current_ts) {
if(obj->sample_ts == -1) return 0; /*no valid value*/
if (obj->sample_ts < current_ts){
int plc_duration;
if (obj->plc_start_ts==-1)
......
......@@ -155,6 +155,7 @@ int mediastreamer2_tester_run_tests(const char *suite_name, const char *test_nam
void helper(const char *name) {
fprintf(stderr, "%s \t--help\n"
"\t\t\t--verbose\n"
"\t\t\t--silent\n"
#if HAVE_CU_GET_SUITE
"\t\t\t--list-suites\n"
"\t\t\t--list-tests <suite>\n"
......@@ -189,6 +190,8 @@ int main (int argc, char *argv[]) {
return 0;
} else if (strcmp(argv[i], "--verbose") == 0) {
verbose = TRUE;
} else if (strcmp(argv[i], "--silent") == 0) {
verbose = FALSE;
}
#if HAVE_CU_GET_SUITE
else if (strcmp(argv[i], "--test")==0) {
......@@ -229,7 +232,7 @@ int main (int argc, char *argv[]) {
if (verbose) {
putenv("MEDIASTREAMER_DEBUG=1");
} else {
putenv("MEDIASTREAMER_DEBUG=");
putenv("MEDIASTREAMER_DEBUG=0");
}
ret = mediastreamer2_tester_run_tests(suite_name, test_name);
......
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