diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-04-10 13:39:06 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-04-10 17:01:54 -0400 |
commit | b531c1872952c5f9a2a46d0a0dfe8dc63be470fd (patch) | |
tree | 648c6bddf432eeb156b4e211c161953adde97b6e /common/ini/ini_config_ut.c | |
parent | 24967bd826ad5437a11b1431c8289b1881b52a17 (diff) | |
download | sssd-b531c1872952c5f9a2a46d0a0dfe8dc63be470fd.tar.gz sssd-b531c1872952c5f9a2a46d0a0dfe8dc63be470fd.tar.bz2 sssd-b531c1872952c5f9a2a46d0a0dfe8dc63be470fd.zip |
The lower level function now returns NOENT if file is not found.
Diffstat (limited to 'common/ini/ini_config_ut.c')
-rw-r--r-- | common/ini/ini_config_ut.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/ini/ini_config_ut.c b/common/ini/ini_config_ut.c index 28560e54..6787c36c 100644 --- a/common/ini/ini_config_ut.c +++ b/common/ini/ini_config_ut.c @@ -61,6 +61,12 @@ int single_file() struct collection_item *ini_config = (struct collection_item *)(NULL); struct collection_item *error_set = (struct collection_item *)(NULL); + error = config_from_file("test", "./ini/not_exist_ini.conf", &ini_config,INI_STOP_ON_NONE,&error_set); + if(error) { + printf("Attempt to read configuration returned error: %d. EXPECTED.\n\n",error); + if(error != ENOENT) return error; + } + error = config_from_file("test", "./ini/ini.conf", &ini_config,INI_STOP_ON_NONE,&error_set); if(error) { printf("Attempt to read configuration returned error: %d\n",error); |