of: Add a testcase for of_find_node_by_path()

Add a testcase for the find_node_by_path() function to make sure it
handles all the valid scenarios.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:
Grant Likely
2014-03-14 13:53:10 +00:00
parent c22e650e66
commit ae91ff72e9
2 changed files with 51 additions and 1 deletions

View File

@ -1,6 +1,10 @@
/ {
testcase-data {
aliases {
testcase-alias = &testcase;
};
testcase: testcase-data {
security-password = "password";
duplicate-name = "duplicate";
duplicate-name { };