diff options
Diffstat (limited to 'test/dm/axi.c')
-rw-r--r-- | test/dm/axi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dm/axi.c b/test/dm/axi.c index e234ab82e6..e1155a51dd 100644 --- a/test/dm/axi.c +++ b/test/dm/axi.c @@ -7,6 +7,7 @@ #include <common.h> #include <axi.h> #include <dm.h> +#include <log.h> #include <dm/test.h> #include <test/ut.h> #include <asm/axi.h> @@ -65,11 +66,11 @@ static int dm_test_axi_store(struct unit_test_state *uts) /* Test writing */ val = 0x55667788; axi_write(store, 0, &val, AXI_SIZE_32); - ut_asserteq(0, memcmp(data, tdata1, ARRAY_SIZE(tdata1))); + ut_asserteq_mem(data, tdata1, ARRAY_SIZE(tdata1)); val = 0xaabbccdd; axi_write(store, 3, &val, AXI_SIZE_32); - ut_asserteq(0, memcmp(data + 3, tdata2, ARRAY_SIZE(tdata1))); + ut_asserteq_mem(data + 3, tdata2, ARRAY_SIZE(tdata1)); return 0; } |