forked from mirrors/linphone-iphone
log_collection_tester on android, delete local ref to avoid 500 local ref limit on android
This commit is contained in:
parent
abe5a19431
commit
cc5ec63197
3 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue