diff --git a/lib/tests/test_ini.c b/lib/tests/test_ini.c
index 80396caa5a222359e46fa8f8da702ab836403e40..1ab1e5d3a97e927a15a784db4abad2c052f5ddfe 100644 (file)
--- a/lib/tests/test_ini.c
+++ b/lib/tests/test_ini.c
{
char *optstr=NULL;
- plan_tests(12);
+ plan_tests(11);
optstr=list2str(np_get_defaults("section@./config-tiny.ini", "check_disk"));
ok( !strcmp(optstr, "--one=two --Foo=Bar --this=Your Mother! --blank"), "config-tiny.ini's section as expected");
ok( !strcmp(optstr, "--one=two --Foo=Bar --this=Your Mother! --blank"), "Used default section name, without specific");
my_free(optstr);
- optstr=list2str(np_get_defaults("section_unknown@./config-tiny.ini", "section"));
- ok( !strcmp(optstr, "--one=two --Foo=Bar --this=Your Mother! --blank"), "Used default section name over specified one");
- my_free(optstr);
+ /*
+ * This check is expected to die - It's commented so we can eventually put
+ * it in a separate file for testing the return value
+ */
+ /* optstr=list2str(np_get_defaults("section_unknown@./config-tiny.ini", "section"));
+ ok( 0, "die if section isn't found");
+ my_free(optstr); */
optstr=list2str(np_get_defaults("Section Two@./config-tiny.ini", "check_disk"));
ok( !strcmp(optstr, "--something else=blah --remove=whitespace"), "config-tiny.ini's Section Two as expected");