summaryrefslogtreecommitdiff
path: root/tests/mknode_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mknode_simple.c')
-rw-r--r--tests/mknode_simple.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mknode_simple.c b/tests/mknode_simple.c
index 4b4e4aa..ef2a466 100644
--- a/tests/mknode_simple.c
+++ b/tests/mknode_simple.c
@@ -32,6 +32,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == sb.st_mode);
+ assert(node->link_count == 1);
assert(node->parent == NULL);
assert(node->data.target == NULL);
assert(node->data.devno == 0);
@@ -51,6 +52,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == sb.st_mode);
+ assert(node->link_count == 1);
assert(node->parent == NULL);
assert(node->data.target == NULL);
assert(node->data.devno == 0);
@@ -70,6 +72,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == sb.st_mode);
+ assert(node->link_count == 1);
assert(node->data.devno == sb.st_rdev);
assert(node->parent == NULL);
free(node);
@@ -88,6 +91,7 @@ int main(void)
assert(node->uid == sb.st_uid);
assert(node->gid == sb.st_gid);
assert(node->mode == sb.st_mode);
+ assert(node->link_count == 1);
assert(node->data.devno == sb.st_rdev);
assert(node->parent == NULL);
free(node);