radix-tree: fix radix_tree_create for sibling entries
[cascardo/linux.git] / tools / testing / radix-tree / multiorder.c
index 1b6fc9b..fc93457 100644 (file)
@@ -135,6 +135,11 @@ static void multiorder_check(unsigned long index, int order)
                item_check_absent(&tree, i);
        for (i = max; i < 2*max; i++)
                item_check_absent(&tree, i);
+       for (i = min; i < max; i++) {
+               static void *entry = (void *)
+                                       (0xA0 | RADIX_TREE_EXCEPTIONAL_ENTRY);
+               assert(radix_tree_insert(&tree, i, entry) == -EEXIST);
+       }
 
        assert(item_delete(&tree, index) != 0);