diff options
author | Simon Glass <sjg@chromium.org> | 2025-01-10 17:00:27 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-22 17:08:23 -0600 |
commit | ff698f2ddbcce5601a19fd61bef45aedd3d59cc6 (patch) | |
tree | 2bc7f3ac361258f883f9e028af610f2a10f105c3 /test/dm/core.c | |
parent | d5bc5c6cb0291203fe848a8532a7ecbcd44cfe9e (diff) |
dm: core: Clarify behaviour of ofnode_name_eq()
This function is somewhat ambiguous, so expand the comments and add a
test for the undefined behaviour.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/core.c')
-rw-r--r-- | test/dm/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/core.c b/test/dm/core.c index c59ffc6f611..d40916ef588 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -186,6 +186,8 @@ static int dm_test_compare_node_name(struct unit_test_state *uts) ut_assert(ofnode_valid(node)); ut_assert(ofnode_name_eq(node, "mmio-bus")); + ut_assert(!ofnode_name_eq(node, "mmio-bus@0")); + return 0; } DM_TEST(dm_test_compare_node_name, UTF_SCAN_PDATA); |