diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-06 20:27:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-29 16:07:58 -0400 |
commit | c3a194dec97be3ceb74ba2c980e635aee1644d94 (patch) | |
tree | 3a6cc834b0952633c6a9b6684a65bcbaaa28361c /test/dm | |
parent | ffe90392497898ccd8000e695901853e192a9007 (diff) | |
download | u-boot-c3a194dec97be3ceb74ba2c980e635aee1644d94.tar.gz |
dm: core: Support writing a property to an empty node
At present this does not work with livetree. Fix it and add a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r-- | test/dm/ofnode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 543dc546b95..0f65ff939fb 100644 --- a/test/dm/ofnode.c +++ b/test/dm/ofnode.c @@ -672,6 +672,9 @@ static int dm_test_ofnode_add_subnode(struct unit_test_state *uts) malloc_disable_testing(); } + /* write to the empty node */ + ut_assertok(ofnode_write_string(subnode, "example", "text")); + return 0; } DM_TEST(dm_test_ofnode_add_subnode, |