summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-15 14:30:33 -0400
committerpommicket <pommicket@gmail.com>2025-09-15 14:30:33 -0400
commit627278a0cb84bca7751e97f13d9c235abac678f0 (patch)
tree6d674f6ceb0be295c126ba9fcf08179054411e90 /tests
parent4f2644f354184d5febc1aa8f37e987eca03f7f25 (diff)
pom_settings
Diffstat (limited to 'tests')
-rw-r--r--tests/errors.c2
-rw-r--r--tests/location.c4
-rw-r--r--tests/parsing.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/errors.c b/tests/errors.c
index 2bcf14c..d1dec96 100644
--- a/tests/errors.c
+++ b/tests/errors.c
@@ -21,7 +21,7 @@ void test_errors(const char *test_dir) {
char *conf_path = malloc(strlen(errors_dir) + strlen(name) + 30);
sprintf(conf_path, "%s/errors/%s", test_dir, name);
pom_error *error;
- pom_conf *conf = pom_load_path(conf_path, &error);
+ pom_conf *conf = pom_load_path(NULL, conf_path, &error);
if (error) {
free(error);
free(conf_path);
diff --git a/tests/location.c b/tests/location.c
index 5694f78..372d506 100644
--- a/tests/location.c
+++ b/tests/location.c
@@ -24,13 +24,13 @@ void test_location(const char *test_dir) {
(int)(strlen(name) - strlen(".locations.pom")), name);
sprintf(loc_path, "%s/%s", location_dir, name);
pom_error *error;
- pom_conf *conf = pom_load_path(conf_path, &error);
+ pom_conf *conf = pom_load_path(NULL, conf_path, &error);
if (error) {
test_fail("Failed to parse %s\n%s", conf_path,
pom_error_to_string(error));
continue;
}
- pom_conf *loc = pom_load_path(loc_path, &error);
+ pom_conf *loc = pom_load_path(NULL, loc_path, &error);
if (error) {
test_fail("Failed to parse %s\n%s", loc_path,
pom_error_to_string(error));
diff --git a/tests/parsing.c b/tests/parsing.c
index f34107e..c28df0d 100644
--- a/tests/parsing.c
+++ b/tests/parsing.c
@@ -24,13 +24,13 @@ void test_parsing(const char *test_dir) {
(int)(strlen(name) - strlen(".flat.pom")), name);
sprintf(flat_path, "%s/parsing/%s", test_dir, name);
pom_error *error;
- pom_conf *conf = pom_load_path(conf_path, &error);
+ pom_conf *conf = pom_load_path(NULL, conf_path, &error);
if (error) {
test_fail("Failed to parse %s\n%s", conf_path,
pom_error_to_string(error));
continue;
}
- pom_conf *flat = pom_load_path(flat_path, &error);
+ pom_conf *flat = pom_load_path(NULL, flat_path, &error);
if (error) {
test_fail("Failed to parse %s\n%s", flat_path,
pom_error_to_string(error));