From 6636bd99d6767a99546b1b82ce69ade6df867b42 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 25 Dec 2016 00:43:42 +0100 Subject: config-parser: added support to parse section as list of lines --- tests/blogc-git-receiver/check_post_receive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/blogc-git-receiver') 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"); -- cgit v1.2.3-18-g5258