From 653469062abd091b08ed9c5986f8f6024c2958d9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 21 Jul 2019 16:38:32 +0200 Subject: Fix fstree_xattr unit test The members have been split up and renamed. Signed-off-by: David Oberhollenzer --- tests/fstree_xattr.c | 15 +++++++++++---- 1 file 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); -- cgit v1.2.3