radix tree test suite: Add test for radix_tree_clear_tags()
authorRehas Sachdeva <aquannie@gmail.com>
Sun, 26 Feb 2017 11:33:00 +0000 (06:33 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 7 Mar 2017 18:18:19 +0000 (13:18 -0500)
commitc629a344accd15022dd6d87fa28c8e22f978fbda
treeb3fca8c43ccecfabf24c913b7184e121cc1fdd43
parent166bb1f532fd9fe1b81c6b411ad5d5c9dd21a685
radix tree test suite: Add test for radix_tree_clear_tags()

Assert that radix_tree_clear_tags() clears the tags on the passed node and
slot. Assert that the case where the radix tree has only one entry at index
zero and the node is NULL, is also handled.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
tools/testing/radix-tree/tag_check.c