radix tree test suite: add tests for radix_tree_locate_item()
PATCH 101/162 radix tree test suite: add tests for radix_tree_locate_item()
From: Matthew Wilcox <[email protected]>
Subject: radix tree test suite: add tests for radix_tree_locate_item()
Fairly simple tests; add various items to the tree, then make sure we can find them again. Also check that a pointer that we know isn't in the tree is not found.
Signed-off-by Matthew Wilcox <[email protected]>
Reviewed-by Ross Zwisler <[email protected]>
Cc Konstantin Khlebnikov <[email protected]>
Cc Kirill Shutemov <[email protected]>
Cc Jan Kara <[email protected]>
Cc Neil Brown <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
tools/testing/radix-tree/linux/kernel.h | 3 + tools/testing/radix-tree/main.c | 41 ++++++++++++++++++++++ 2 files changed, 44 insertions(+)
tools/testing/radix-tree/linux/kernel.h renamed from tools/testing/radix-tree/linux/kernel.h~radix-tree-test-suite-add-tests-for-radix_tree_locate_item +3 -0
@@ -9,6 +9,9 @@#include "../../include/linux/compiler.h" +#define CONFIG_SHMEM +#define CONFIG_SWAP +#ifndef NULL #define NULL 0#endif
tools/testing/radix-tree/main.c renamed from tools/testing/radix-tree/main.c~radix-tree-test-suite-add-tests-for-radix_tree_locate_item +41 -0
51 lines not on this page · raw message
_