diff --git a/LinphoneTester Tests/LinphoneTester_Tests.m b/LinphoneTester Tests/LinphoneTester_Tests.m index 89e1920e1..bbbc655b0 100644 --- a/LinphoneTester Tests/LinphoneTester_Tests.m +++ b/LinphoneTester Tests/LinphoneTester_Tests.m @@ -37,7 +37,7 @@ void LSLog(NSString* fmt, ...){ } -+ (NSString*)safeifyTestString:(NSString*)testString{ ++ (NSString*)safetyTestString:(NSString*)testString{ NSCharacterSet *charactersToRemove = [[NSCharacterSet alphanumericCharacterSet] invertedSet]; return [[testString componentsSeparatedByCharactersInSet:charactersToRemove] componentsJoinedByString:@"_"]; } @@ -48,7 +48,7 @@ void LSLog(NSString* fmt, ...){ static char * bundle = NULL; static char * documents = NULL; - liblinphone_tester_init(); + bc_tester_init(); NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); @@ -59,25 +59,27 @@ void LSLog(NSString* fmt, ...){ LSLog(@"Bundle path: %@", bundlePath); LSLog(@"Document path: %@", documentPath); - liblinphone_tester_set_fileprefix(bundle); - liblinphone_tester_set_writable_dir_prefix(documents); + + bc_tester_read_dir_prefix = bundle; + bc_tester_writable_dir_prefix = documents; + liblinphone_tester_keep_accounts(TRUE); - int count = liblinphone_tester_nb_test_suites(); + int count = bc_tester_nb_test_suites(); for (int i=0; i