summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fstree_from_dir.c13
-rw-r--r--tests/fstree_fuzz.c2
2 files changed, 8 insertions, 7 deletions
diff --git a/tests/fstree_from_dir.c b/tests/fstree_from_dir.c
index 8e08aeb..af48d4d 100644
--- a/tests/fstree_from_dir.c
+++ b/tests/fstree_from_dir.c
@@ -321,7 +321,8 @@ int main(void)
/* recursively scan into root */
TEST_ASSERT(fstree_init(&fs, NULL) == 0);
- TEST_ASSERT(fstree_from_dir(&fs, fs.root, TEST_PATH, 0) == 0);
+ TEST_ASSERT(fstree_from_dir(&fs, fs.root, TEST_PATH,
+ NULL, NULL, 0) == 0);
fstree_post_process(&fs);
check_hierarchy(fs.root, true);
@@ -329,8 +330,8 @@ int main(void)
/* non-recursively scan into root */
TEST_ASSERT(fstree_init(&fs, NULL) == 0);
- TEST_ASSERT(fstree_from_dir(&fs, fs.root,
- TEST_PATH, DIR_SCAN_NO_RECURSION) == 0);
+ TEST_ASSERT(fstree_from_dir(&fs, fs.root, TEST_PATH, NULL, NULL,
+ DIR_SCAN_NO_RECURSION) == 0);
fstree_post_process(&fs);
check_hierarchy(fs.root, false);
@@ -346,7 +347,7 @@ int main(void)
TEST_NOT_NULL(n);
fs.root->data.dir.children = n;
- TEST_ASSERT(fstree_from_dir(&fs, n, TEST_PATH, 0) == 0);
+ TEST_ASSERT(fstree_from_dir(&fs, n, TEST_PATH, NULL, NULL, 0) == 0);
TEST_ASSERT(fs.root->data.dir.children == n);
TEST_NULL(n->next);
@@ -365,8 +366,8 @@ int main(void)
TEST_NOT_NULL(n);
fs.root->data.dir.children = n;
- TEST_ASSERT(fstree_from_dir(&fs, n,
- TEST_PATH, DIR_SCAN_NO_RECURSION) == 0);
+ TEST_ASSERT(fstree_from_dir(&fs, n, TEST_PATH, NULL, NULL,
+ DIR_SCAN_NO_RECURSION) == 0);
TEST_ASSERT(fs.root->data.dir.children == n);
TEST_NULL(n->next);
diff --git a/tests/fstree_fuzz.c b/tests/fstree_fuzz.c
index 9618814..ebc8c45 100644
--- a/tests/fstree_fuzz.c
+++ b/tests/fstree_fuzz.c
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
if (fstree_init(&fs, NULL))
return EXIT_FAILURE;
- if (fstree_from_file(&fs, argv[1]))
+ if (fstree_from_file(&fs, argv[1], NULL))
goto out_fs;
ret = EXIT_SUCCESS;