Skip to contentSkip to conversation

radix tree test suite: add tests for radix_tree_locate_item()

PATCH New [email protected] 1 participant 1 message May 21, 2016 Xarray

lore
Share & tools
lore
#0 lore raw

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.

Cc Konstantin Khlebnikov <[email protected]>
Cc Kirill Shutemov <[email protected]>
Cc Jan Kara <[email protected]>
Cc Neil Brown <[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
diff -puN tools/testing/radix-tree/linux/kernel.h~radix-tree-test-suite-add-tests-for-radix_tree_locate_item tools/testing/radix-tree/linux/kernel.h
@@ -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

_