]> git.baikalelectronics.ru Git - kernel.git/commit
radix tree test suite: Add tests for ida_simple_get() and ida_simple_remove()
authorRehas Sachdeva <aquannie@gmail.com>
Mon, 20 Feb 2017 11:40:00 +0000 (06:40 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 7 Mar 2017 18:18:19 +0000 (13:18 -0500)
commit88e5dc80d01ad15632d76eddef5b7ebc745d7285
tree88c78261a7976af4533989e52ae104f206fa63b5
parent8c73012409dfdff067922ec7e8e461b0533057e9
radix tree test suite: Add tests for ida_simple_get() and ida_simple_remove()

Assert that ida_simple_get() allocates an id in the passed range or returns
error on failure, and ida_simple_remove() releases an allocated id.

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