diff options
Diffstat (limited to 'tests/add_by_path.c')
-rw-r--r-- | tests/add_by_path.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/add_by_path.c b/tests/add_by_path.c index 0023e0a..740e732 100644 --- a/tests/add_by_path.c +++ b/tests/add_by_path.c @@ -11,8 +11,11 @@ int main(void) tree_node_t *a, *b; struct stat sb; fstree_t fs; + char *opts; - assert(fstree_init(&fs, 512, 1337, 0755, 21, 42) == 0); + opts = strdup("mode=0755,uid=21,gid=42"); + assert(fstree_init(&fs, 512, opts) == 0); + free(opts); memset(&sb, 0, sizeof(sb)); sb.st_mode = S_IFDIR | 0750; |