summaryrefslogtreecommitdiff
path: root/tests/mknode_slink.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mknode_slink.c')
-rw-r--r--tests/mknode_slink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mknode_slink.c b/tests/mknode_slink.c
index a520e70..bcb28f0 100644
--- a/tests/mknode_slink.c
+++ b/tests/mknode_slink.c
@@ -30,6 +30,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == (S_IFLNK | 0777));
+ assert(node->link_count == 1);
assert(node->parent == NULL);
assert((char *)node->name >= (char *)node->payload);
assert(node->data.target >= (char *)node->payload);
@@ -42,6 +43,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == (S_IFLNK | 0777));
+ assert(node->link_count == 1);
assert(node->parent == NULL);
assert((char *)node->name >= (char *)node->payload);
assert(node->data.target >= (char *)node->payload);