Hard mondays: forgot to set up the file prefix / writable prefix

This commit is contained in:
Guillaume BIENKOWSKI 2014-12-01 15:07:05 +01:00
parent 21a242acfe
commit 5da14be7cc

View file

@ -49,6 +49,7 @@ void LSLog(NSString* fmt, ...){
static char * bundle = NULL;
static char * documents = NULL;
liblinphone_tester_init();
NSString* bundlePath = [[NSBundle mainBundle] bundlePath];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* documentPath = [paths objectAtIndex:0];
@ -58,6 +59,9 @@ void LSLog(NSString* fmt, ...){
LSLog(@"Bundle path: %@", bundlePath);
LSLog(@"Document path: %@", documentPath);
liblinphone_tester_set_fileprefix(bundle);
liblinphone_tester_set_writable_dir_prefix(documents);
int count = liblinphone_tester_nb_test_suites();
for (int i=0; i<count; i++) {