[PATCH v3 2/6] test: dm: core: add some assertions for device_reparent()

Simon Glass sjg at chromium.org
Wed Feb 4 01:23:21 CET 2026


On Tue, 20 Jan 2026 at 08:07, Yang Xiwen via B4 Relay
<devnull+forbidden405.outlook.com at kernel.org> wrote:
>
> From: Yang Xiwen <forbidden405 at outlook.com>
>
> The original tests only assert the return value of device_reparent(),
> but does not check the actual relation between the new parent and the
> child. Add some assertions to check this behavior.
>
> It also lacks the logic to test orphan/root devices. Add tests for that.
>
> Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
> ---
>  test/dm/core.c | 34 ++++++++++++++++++++++++++++++++--
>  1 file changed, 32 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <simon.glass at canonical.com>


More information about the U-Boot mailing list