diff --git a/build/android/liblinphone_tester.mk b/build/android/liblinphone_tester.mk index 5ca3732be0b5f51ef813795ec89fe0522f938acf..b23a381bdf95d897994ad0eb3cf14ce4469bd258 100644 --- a/build/android/liblinphone_tester.mk +++ b/build/android/liblinphone_tester.mk @@ -14,7 +14,6 @@ common_SRC_FILES := \ tester.c \ remote_provisioning_tester.c \ quality_reporting_tester.c \ - log_collection_tester.c \ transport_tester.c \ player_tester.c diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index 5fb91605c477504f511e008fca9cbb56a302a404..5d68bc2cf92ca172ca7e8c11d0a871b48abb8a1d 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -80,6 +80,7 @@ void cunit_android_trace_handler(int level, const char *fmt, va_list args) { jmethodID method = (*env)->GetMethodID(env, cls, "printLog", "(ILjava/lang/String;)V"); (*env)->CallVoidMethod(env, current_obj, method, javaLevel, javaString); (*env)->DeleteLocalRef(env,javaString); + (*env)->DeleteLocalRef(env,cls); } JNIEXPORT jint JNICALL Java_org_linphone_tester_Tester_run(JNIEnv *env, jobject obj, jobjectArray stringArray) { diff --git a/tester/tester.c b/tester/tester.c index c157fe49b48fd51f03773e73ad217469c1260af3..0973c581002b85374abd47c7798c00e24ba33504 100644 --- a/tester/tester.c +++ b/tester/tester.c @@ -387,7 +387,9 @@ void liblinphone_tester_init(void) { add_test_suite(&flexisip_test_suite); add_test_suite(&remote_provisioning_test_suite); add_test_suite(&quality_reporting_test_suite); +#ifndef ANDROID add_test_suite(&log_collection_test_suite); +#endif add_test_suite(&transport_test_suite); add_test_suite(&player_test_suite); }