aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc-git-receiver
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-12-25 00:43:42 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-12-25 00:43:42 +0100
commit6636bd99d6767a99546b1b82ce69ade6df867b42 (patch)
tree9855c1668ffe7ba367ed0f976bc50b4cc048e8a6 /tests/blogc-git-receiver
parentccb429435e162915917f2492217c4e206b9b2a96 (diff)
downloadblogc-6636bd99d6767a99546b1b82ce69ade6df867b42.tar.gz
blogc-6636bd99d6767a99546b1b82ce69ade6df867b42.tar.bz2
blogc-6636bd99d6767a99546b1b82ce69ade6df867b42.zip
config-parser: added support to parse section as list of lines
Diffstat (limited to 'tests/blogc-git-receiver')
-rw-r--r--tests/blogc-git-receiver/check_post_receive.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/blogc-git-receiver/check_post_receive.c b/tests/blogc-git-receiver/check_post_receive.c
index 8e56f98..cf003e0 100644
--- a/tests/blogc-git-receiver/check_post_receive.c
+++ b/tests/blogc-git-receiver/check_post_receive.c
@@ -33,7 +33,7 @@ test_post_receive_get_config_section(void **state)
{
bc_error_t *err = NULL;
- bc_config_t *config = bc_config_parse("", 0, &err);
+ bc_config_t *config = bc_config_parse("", 0, NULL, &err);
assert_null(err);
assert_null(bgr_post_receive_get_config_section(config,
"/home/blogc/repos/foo.git", "/home/blogc"));
@@ -51,7 +51,7 @@ test_post_receive_get_config_section(void **state)
"[repo:baz.git]\n"
"mirror = baz\n"
"\n";
- config = bc_config_parse(conf, strlen(conf), &err);
+ config = bc_config_parse(conf, strlen(conf), NULL, &err);
assert_null(err);
char *s = bgr_post_receive_get_config_section(config,
"/home/blogc/repos/bar.git", "/home/blogc");
@@ -71,7 +71,7 @@ test_post_receive_get_config_section(void **state)
"[repo:asd/baz.git]\n"
"mirror = baz\n"
"\n";
- config = bc_config_parse(conf, strlen(conf), &err);
+ config = bc_config_parse(conf, strlen(conf), NULL, &err);
assert_null(err);
s = bgr_post_receive_get_config_section(config,
"/home/blogc/repos/asd/bar.git", "/home/blogc");