aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc-git-receiver/check_settings.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-08-19 14:22:45 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-08-09 20:14:10 +0200
commit82952bb16eeb8d27b4357fa16b76a8ee8819964b (patch)
tree4e823d9f5b22fa348216734409cf3ca4f79eff24 /tests/blogc-git-receiver/check_settings.c
parentc12bdb94ecdc44f200a8030dfde4a5ec46053ea6 (diff)
downloadblogc-82952bb16eeb8d27b4357fa16b76a8ee8819964b.tar.gz
blogc-82952bb16eeb8d27b4357fa16b76a8ee8819964b.tar.bz2
blogc-82952bb16eeb8d27b4357fa16b76a8ee8819964b.zip
common: config-parser: mark section as list by prefixfeature/make-generic-rule
Diffstat (limited to 'tests/blogc-git-receiver/check_settings.c')
-rw-r--r--tests/blogc-git-receiver/check_settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/blogc-git-receiver/check_settings.c b/tests/blogc-git-receiver/check_settings.c
index cb12037..f6f6ee9 100644
--- a/tests/blogc-git-receiver/check_settings.c
+++ b/tests/blogc-git-receiver/check_settings.c
@@ -35,7 +35,7 @@ test_settings_get_section(void **state)
setenv("HOME", "/home/blogc", 1);
- bc_config_t *config = bc_config_parse("", 0, NULL, &err);
+ bc_config_t *config = bc_config_parse("", 0, NULL, NULL, &err);
assert_null(err);
assert_null(bgr_settings_get_section(config, "/home/blogc/repos/foo.git"));
bc_config_free(config);
@@ -52,7 +52,7 @@ test_settings_get_section(void **state)
"[repo:baz.git]\n"
"mirror = baz\n"
"\n";
- config = bc_config_parse(conf, strlen(conf), NULL, &err);
+ config = bc_config_parse(conf, strlen(conf), NULL, NULL, &err);
assert_null(err);
char *s = bgr_settings_get_section(config, "/home/blogc/repos/bar.git");
assert_string_equal(s, "repo:bar.git");
@@ -72,7 +72,7 @@ test_settings_get_section(void **state)
"[repo:asd/baz.git]\n"
"mirror = baz\n"
"\n";
- config = bc_config_parse(conf, strlen(conf), NULL, &err);
+ config = bc_config_parse(conf, strlen(conf), NULL, NULL, &err);
assert_null(err);
s = bgr_settings_get_section(config, "/home/bola/repos/asd/bar.git");
assert_string_equal(s, "repo:asd/bar.git");