summaryrefslogtreecommitdiff
path: root/tests/mknode_slink.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 17:04:54 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 17:04:54 +0100
commit5dc3ab23d0552dc9460152f8a9089f25c8572d90 (patch)
treebbcdf05bd0fbe6c4bce8b6cea37aa3aeff03c02e /tests/mknode_slink.c
parent6f96c4d2651ed59975354433267319d527490537 (diff)
Rename fstree "slink_target" to "target"
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/mknode_slink.c')
-rw-r--r--tests/mknode_slink.c12
1 files changed, 6 insertions, 6 deletions
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;