aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 16:38:32 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-21 16:38:32 +0200
commit653469062abd091b08ed9c5986f8f6024c2958d9 (patch)
tree227efecd6e694805af9312b588cc3cafe56fa0e8
parent58470cb4d4bacb7a0bd4d23520b3e4f6841b38ca (diff)
Fix fstree_xattr unit test
The members have been split up and renamed. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/fstree_xattr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/fstree_xattr.c b/tests/fstree_xattr.c
index 9ac6907..edafd8c 100644
--- a/tests/fstree_xattr.c
+++ b/tests/fstree_xattr.c
@@ -53,10 +53,17 @@ int main(void)
assert(c->xattr->num_attr == 1);
assert(d->xattr->num_attr == 2);
- assert(a->xattr->ref[0] == b->xattr->ref[0]);
- assert(a->xattr->ref[0] == c->xattr->ref[1]);
- assert(a->xattr->ref[0] != c->xattr->ref[0]);
- assert(b->xattr->ref[1] == d->xattr->ref[0]);
+ assert(a->xattr->attr[0].key_index == b->xattr->attr[0].key_index);
+ assert(a->xattr->attr[0].value_index == b->xattr->attr[0].value_index);
+
+ assert(a->xattr->attr[0].key_index == d->xattr->attr[1].key_index);
+ assert(a->xattr->attr[0].value_index == d->xattr->attr[1].value_index);
+
+ assert(a->xattr->attr[0].key_index == c->xattr->attr[0].key_index);
+ assert(a->xattr->attr[0].value_index != c->xattr->attr[0].value_index);
+
+ assert(b->xattr->attr[1].key_index == d->xattr->attr[0].key_index);
+ assert(b->xattr->attr[1].value_index == d->xattr->attr[0].value_index);
fstree_xattr_deduplicate(&fs);