1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Use ASSERT_COMPARE in test_suite_md

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2023-02-09 09:15:04 +01:00
parent 54faadce7a
commit 3c30191c28
2 changed files with 11 additions and 28 deletions

View File

@ -179,7 +179,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); \
} \