diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-29 01:45:59 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-29 01:46:39 +0200 |
commit | 89d0a57e2271db304fdf2ed7d31947c9a3418940 (patch) | |
tree | eb37df0fb3bbcc1415873bf1c679ab552f6c8e8d /tests | |
parent | db519e0d3a9fd5a8c35d66341b37def7be813d89 (diff) |
Cleanup: fstree no longer has any use for the block size
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/add_by_path.c | 2 | ||||
-rw-r--r-- | tests/fstree_from_file.c | 2 | ||||
-rw-r--r-- | tests/fstree_fuzz.c | 2 | ||||
-rw-r--r-- | tests/fstree_init.c | 8 | ||||
-rw-r--r-- | tests/gen_inode_table.c | 4 | ||||
-rw-r--r-- | tests/get_path.c | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/add_by_path.c b/tests/add_by_path.c index afed438..af8dd88 100644 --- a/tests/add_by_path.c +++ b/tests/add_by_path.c @@ -21,7 +21,7 @@ int main(void) char *opts; opts = strdup("mode=0755,uid=21,gid=42"); - assert(fstree_init(&fs, 512, opts) == 0); + assert(fstree_init(&fs, opts) == 0); free(opts); memset(&sb, 0, sizeof(sb)); diff --git a/tests/fstree_from_file.c b/tests/fstree_from_file.c index 76e378a..b5ac2a3 100644 --- a/tests/fstree_from_file.c +++ b/tests/fstree_from_file.c @@ -37,7 +37,7 @@ int main(void) fp = fmemopen(ptr, strlen(ptr), "r"); assert(fp != NULL); - assert(fstree_init(&fs, 512, NULL) == 0); + assert(fstree_init(&fs, NULL) == 0); assert(fstree_from_file(&fs, "testfile", fp) == 0); tree_node_sort_recursive(fs.root); diff --git a/tests/fstree_fuzz.c b/tests/fstree_fuzz.c index a9df1ab..42d8942 100644 --- a/tests/fstree_fuzz.c +++ b/tests/fstree_fuzz.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - if (fstree_init(&fs, 512, NULL)) + if (fstree_init(&fs, NULL)) goto out_fp; if (fstree_from_file(&fs, argv[1], fp)) diff --git a/tests/fstree_init.c b/tests/fstree_init.c index 1a56256..ae559dd 100644 --- a/tests/fstree_init.c +++ b/tests/fstree_init.c @@ -20,7 +20,7 @@ int main(void) str = strdup("mtime=1337,uid=1000,gid=100,mode=0321"); assert(str != NULL); - assert(fstree_init(&fs, 512, str) == 0); + assert(fstree_init(&fs, str) == 0); free(str); assert(fs.defaults.st_mtime == 1337); assert(fs.defaults.st_uid == 1000); @@ -28,7 +28,7 @@ int main(void) assert(fs.defaults.st_mode == (S_IFDIR | 0321)); fstree_cleanup(&fs); - assert(fstree_init(&fs, 512, NULL) == 0); + assert(fstree_init(&fs, NULL) == 0); assert(fs.defaults.st_mtime == 0); assert(fs.defaults.st_uid == 0); assert(fs.defaults.st_gid == 0); @@ -37,13 +37,13 @@ int main(void) str = strdup("mode=07777"); assert(str != NULL); - assert(fstree_init(&fs, 512, str) == 0); + assert(fstree_init(&fs, str) == 0); free(str); fstree_cleanup(&fs); str = strdup("mode=017777"); assert(str != NULL); - assert(fstree_init(&fs, 512, str) != 0); + assert(fstree_init(&fs, str) != 0); free(str); return EXIT_SUCCESS; diff --git a/tests/gen_inode_table.c b/tests/gen_inode_table.c index cf140c8..55f543e 100644 --- a/tests/gen_inode_table.c +++ b/tests/gen_inode_table.c @@ -54,7 +54,7 @@ int main(void) fstree_t fs; // inode table for the empty tree - assert(fstree_init(&fs, 0, NULL) == 0); + assert(fstree_init(&fs, NULL) == 0); assert(fstree_gen_inode_table(&fs) == 0); assert(fs.inode_tbl_size == 3); assert(fs.root->inode_num == 2); @@ -64,7 +64,7 @@ int main(void) fstree_cleanup(&fs); // tree with 2 levels under root, fan out 3 - assert(fstree_init(&fs, 0, NULL) == 0); + assert(fstree_init(&fs, NULL) == 0); a = gen_node(fs.root, "a"); b = gen_node(fs.root, "b"); diff --git a/tests/get_path.c b/tests/get_path.c index 7ce6aeb..7d37f4c 100644 --- a/tests/get_path.c +++ b/tests/get_path.c @@ -19,7 +19,7 @@ int main(void) fstree_t fs; char *str; - assert(fstree_init(&fs, 512, NULL) == 0); + assert(fstree_init(&fs, NULL) == 0); memset(&sb, 0, sizeof(sb)); sb.st_mode = S_IFDIR | 0750; |