]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: print_do_hex_dump test depends on HEXDUMP
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 23 Nov 2025 22:56:57 +0000 (23:56 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 14:54:44 +0000 (08:54 -0600)
Skip the test if CONFIG_HEXDUMP=n

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
test/common/print.c

index a8feb07971dc01cd21b8b603227030c516a775cc..23109188317fd166a1c78d34f8d619d6f8ce5b4e 100644 (file)
@@ -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);