Use ASSERT_COMPARE in test_suite_md

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/tests/include/test/macros.h b/tests/include/test/macros.h
index 83a48cd..2eba0c1 100644
--- a/tests/include/test/macros.h
+++ b/tests/include/test/macros.h
@@ -168,7 +168,7 @@
 #define ASSERT_COMPARE(p1, size1, p2, size2)                          \
     do                                                                  \
     {                                                                   \
-        TEST_ASSERT((size1) == (size2));                          \
+        TEST_EQUAL((size1), (size2));                          \
         if ((size1) != 0)                                            \
         TEST_ASSERT(memcmp((p1), (p2), (size1)) == 0);    \
     }                                                                   \