From: Heinrich Schuchardt Date: Sun, 23 Nov 2025 22:56:57 +0000 (+0100) Subject: test: print_do_hex_dump test depends on HEXDUMP X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a63bd541d6136d24f5af22830289b57841b6d086;p=thirdparty%2Fu-boot.git test: print_do_hex_dump test depends on HEXDUMP Skip the test if CONFIG_HEXDUMP=n Signed-off-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- 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);