Commit cc5ec631 authored by jehan's avatar jehan
Browse files

log_collection_tester on android, delete local ref to avoid 500 local ref limit on android

parent abe5a194
No related merge requests found
Showing with 3 additions and 1 deletion
...@@ -14,7 +14,6 @@ common_SRC_FILES := \ ...@@ -14,7 +14,6 @@ common_SRC_FILES := \
tester.c \ tester.c \
remote_provisioning_tester.c \ remote_provisioning_tester.c \
quality_reporting_tester.c \ quality_reporting_tester.c \
log_collection_tester.c \
transport_tester.c \ transport_tester.c \
player_tester.c player_tester.c
......
...@@ -80,6 +80,7 @@ void cunit_android_trace_handler(int level, const char *fmt, va_list args) { ...@@ -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"); jmethodID method = (*env)->GetMethodID(env, cls, "printLog", "(ILjava/lang/String;)V");
(*env)->CallVoidMethod(env, current_obj, method, javaLevel, javaString); (*env)->CallVoidMethod(env, current_obj, method, javaLevel, javaString);
(*env)->DeleteLocalRef(env,javaString); (*env)->DeleteLocalRef(env,javaString);
(*env)->DeleteLocalRef(env,cls);
} }
JNIEXPORT jint JNICALL Java_org_linphone_tester_Tester_run(JNIEnv *env, jobject obj, jobjectArray stringArray) { JNIEXPORT jint JNICALL Java_org_linphone_tester_Tester_run(JNIEnv *env, jobject obj, jobjectArray stringArray) {
......
...@@ -387,7 +387,9 @@ void liblinphone_tester_init(void) { ...@@ -387,7 +387,9 @@ void liblinphone_tester_init(void) {
add_test_suite(&flexisip_test_suite); add_test_suite(&flexisip_test_suite);
add_test_suite(&remote_provisioning_test_suite); add_test_suite(&remote_provisioning_test_suite);
add_test_suite(&quality_reporting_test_suite); add_test_suite(&quality_reporting_test_suite);
#ifndef ANDROID
add_test_suite(&log_collection_test_suite); add_test_suite(&log_collection_test_suite);
#endif
add_test_suite(&transport_test_suite); add_test_suite(&transport_test_suite);
add_test_suite(&player_test_suite); add_test_suite(&player_test_suite);
} }
......
Supports Markdown
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