mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
Fix lpconfig test on read-only storage
This commit is contained in:
parent
d9bc65287c
commit
04a66a165c
1 changed files with 3 additions and 1 deletions
|
|
@ -132,7 +132,9 @@ static void linphone_lpconfig_from_file_zerolen_value(){
|
|||
char* rc_path = ms_strdup_printf("%s/rcfiles/%s", liblinphone_tester_file_prefix, zero_rc_file);
|
||||
LpConfig* conf;
|
||||
|
||||
conf = lp_config_new(rc_path);
|
||||
/* not using lp_config_new() because it expects a readable file, and iOS (for instance)
|
||||
stores the app bundle in read-only */
|
||||
conf = lp_config_new_with_factory(NULL, rc_path);
|
||||
|
||||
CU_ASSERT_STRING_EQUAL(lp_config_get_string(conf,"test","zero_len","LOL"),"LOL");
|
||||
CU_ASSERT_STRING_EQUAL(lp_config_get_string(conf,"test","non_zero_len",""),"test");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue