[PATCH 05/19] test: print_do_hex_dump test depends on HEXDUMP

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon Nov 24 10:54:31 CET 2025


On Mon, 24 Nov 2025 at 00:58, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Skip the test if CONFIG_HEXDUMP=n
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

> ---
>  test/common/print.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/test/common/print.c b/test/common/print.c
> index a8feb07971d..23109188317 100644
> --- a/test/common/print.c
> +++ b/test/common/print.c
> @@ -271,6 +271,9 @@ static int print_do_hex_dump(struct unit_test_state *uts)
>         int i;
>         ulong addr;
>
> +       if (!CONFIG_IS_ENABLED(HEXDUMP))
> +               return -EAGAIN;
> +
>         buf = calloc(1, BUF_SIZE);
>         ut_assertnonnull(buf);
>         addr = map_to_sysmem(buf);
> --
> 2.51.0
>


More information about the U-Boot mailing list