summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDzmitry Sankouski <dsankouski@gmail.com>2023-01-22 18:21:23 +0300
committerTom Rini <trini@konsulko.com>2023-02-10 12:50:01 -0500
commit298ffdd5d65c4d67b958080c1a712f8f1c923af3 (patch)
treeb9fc81567a163b3598b0491a78c3c02049ae5636 /test
parent2ea062265fe67bd4ce375a4e691fdef1cab11478 (diff)
test: create dedicated fdt node for ofnode_for_each_prop test
Property count may change in /buttons node, if more button tests added, and this will break ofnode_for_each_prop. Add separate node for mentioned test. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/ofnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c
index 8077affabb..473a8cef57 100644
--- a/test/dm/ofnode.c
+++ b/test/dm/ofnode.c
@@ -1046,7 +1046,7 @@ static int dm_test_ofnode_for_each_prop(struct unit_test_state *uts)
struct ofprop prop;
int count;
- node = ofnode_path("/buttons");
+ node = ofnode_path("/ofnode-foreach");
count = 0;
/* we expect "compatible" for each node */