tester: use linphone_core_set_log_collection_path to set writable directory for cache files & update submodules

This commit is contained in:
Gautier Pelloux-Prayer 2015-03-30 11:13:51 +02:00
parent 9e06fbfd1c
commit e3935e105e
5 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View file

@ -6,4 +6,5 @@ liblinphone-iphone-sdk*.zip
xcuserdata/
Classes/LinphoneIOSVersion.h
Pods/
build
build
test-reports

View file

@ -63,7 +63,8 @@ void LSLog(NSString* fmt, ...){
bc_tester_read_dir_prefix = bundle;
bc_tester_writable_dir_prefix = documents;
linphone_core_set_log_collection_path(bc_tester_writable_dir_prefix);
liblinphone_tester_keep_accounts(TRUE);
int count = bc_tester_nb_suites();

View file

@ -70,11 +70,13 @@ static void linphone_log_function(OrtpLogLevel lev, const char *fmt, va_list arg
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
documentPath = [paths objectAtIndex:0];
bc_tester_init((void (*)(int, const char *fm, va_list))linphone_log_function, ORTP_MESSAGE, ORTP_ERROR);
liblinphone_tester_add_suites();
bc_tester_init((void (*)(int, const char *fm, va_list))linphone_log_function, ORTP_MESSAGE, ORTP_ERROR);
bc_tester_read_dir_prefix = [bundlePath UTF8String];
bc_tester_writable_dir_prefix = [documentPath UTF8String];
linphone_core_set_log_collection_path(bc_tester_writable_dir_prefix);
LSLog(@"Bundle path: %@", bundlePath);
LSLog(@"Document path: %@", documentPath);

@ -1 +1 @@
Subproject commit 44447d1389cfb6adc4e1c9e9aa3a6f626a6e2b57
Subproject commit abb6f4fa1984e749c6bec61c6efdacee97b0b992

@ -1 +1 @@
Subproject commit 3ceb33ad2c908376825131b0336eb0be6a4162e5
Subproject commit 873d01e1deb747f1c0a8896df6ac6d7e53793d23