diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-18 17:04:54 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-18 17:04:54 +0100 |
commit | 5dc3ab23d0552dc9460152f8a9089f25c8572d90 (patch) | |
tree | bbcdf05bd0fbe6c4bce8b6cea37aa3aeff03c02e /tests | |
parent | 6f96c4d2651ed59975354433267319d527490537 (diff) |
Rename fstree "slink_target" to "target"
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fstree_from_file.c | 4 | ||||
-rw-r--r-- | tests/mknode_simple.c | 4 | ||||
-rw-r--r-- | tests/mknode_slink.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/fstree_from_file.c b/tests/fstree_from_file.c index eccd1f4..e9b56be 100644 --- a/tests/fstree_from_file.c +++ b/tests/fstree_from_file.c @@ -90,8 +90,8 @@ int main(void) assert(n->uid == 2); assert(n->gid == 3); assert(strcmp(n->name, "slink") == 0); - fprintf(stderr, "'%s'\n", n->data.slink_target); - assert(strcmp(n->data.slink_target, "slinktarget") == 0); + fprintf(stderr, "'%s'\n", n->data.target); + assert(strcmp(n->data.target, "slinktarget") == 0); n = n->next; assert(n->mode == (S_IFSOCK | 0555)); diff --git a/tests/mknode_simple.c b/tests/mknode_simple.c index e77f4ff..4b4e4aa 100644 --- a/tests/mknode_simple.c +++ b/tests/mknode_simple.c @@ -33,7 +33,7 @@ int main(void) assert(node->gid == sb.st_gid); assert(node->mode == sb.st_mode); assert(node->parent == NULL); - assert(node->data.slink_target == NULL); + assert(node->data.target == NULL); assert(node->data.devno == 0); free(node); @@ -52,7 +52,7 @@ int main(void) assert(node->gid == sb.st_gid); assert(node->mode == sb.st_mode); assert(node->parent == NULL); - assert(node->data.slink_target == NULL); + assert(node->data.target == NULL); assert(node->data.devno == 0); free(node); diff --git a/tests/mknode_slink.c b/tests/mknode_slink.c index 20cf38a..a520e70 100644 --- a/tests/mknode_slink.c +++ b/tests/mknode_slink.c @@ -32,10 +32,10 @@ int main(void) assert(node->mode == (S_IFLNK | 0777)); assert(node->parent == NULL); assert((char *)node->name >= (char *)node->payload); - assert(node->data.slink_target >= (char *)node->payload); - assert(node->data.slink_target >= node->name + 8); + assert(node->data.target >= (char *)node->payload); + assert(node->data.target >= node->name + 8); assert(strcmp(node->name, "symlink") == 0); - assert(strcmp(node->data.slink_target, "target") == 0); + assert(strcmp(node->data.target, "target") == 0); free(node); node = fstree_mknode(NULL, "symlink", 7, "", &sb); @@ -44,10 +44,10 @@ int main(void) assert(node->mode == (S_IFLNK | 0777)); assert(node->parent == NULL); assert((char *)node->name >= (char *)node->payload); - assert(node->data.slink_target >= (char *)node->payload); - assert(node->data.slink_target >= node->name + 8); + assert(node->data.target >= (char *)node->payload); + assert(node->data.target >= node->name + 8); assert(strcmp(node->name, "symlink") == 0); - assert(node->data.slink_target[0] == '\0'); + assert(node->data.target[0] == '\0'); free(node); return EXIT_SUCCESS; |