aboutsummaryrefslogtreecommitdiff
path: root/test/mdc2_internal_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mdc2_internal_test.c')
-rw-r--r--test/mdc2_internal_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/mdc2_internal_test.c b/test/mdc2_internal_test.c
index 9acea21..7deaf26 100644
--- a/test/mdc2_internal_test.c
+++ b/test/mdc2_internal_test.c
@@ -56,8 +56,9 @@ static int test_mdc2(int idx)
strlen(testdata.input));
MDC2_Final(&(md[0]), &c);
- if (memcmp(testdata.expected, md, MDC2_DIGEST_LENGTH)) {
- fprintf(stderr, "mdc2 test %d: unexpected output\n", idx);
+ if (!TEST_mem_eq(testdata.expected, MDC2_DIGEST_LENGTH,
+ md, MDC2_DIGEST_LENGTH)) {
+ TEST_info("mdc2 test %d: unexpected output", idx);
return 0;
}