From 75a8f1eff03a1c91c22683b022e2145628962157 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 26 Mar 2018 10:55:35 +0200 Subject: [PATCH] test/test_test.c: add CRYPTO_memcmp regression test. Reviewed-by: Matt Caswell --- test/test_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_test.c b/test/test_test.c index c45bf8d8f1..76b61f8188 100644 --- a/test/test_test.c +++ b/test/test_test.c @@ -531,6 +531,10 @@ static int test_bn_output(int n) return 1; } +static int test_memcmp(void) +{ + return CRYPTO_memcmp("ab","cd",2); +} int setup_tests(void) { @@ -553,6 +557,7 @@ int setup_tests(void) ADD_TEST(test_messages); ADD_TEST(test_single_eval); ADD_TEST(test_output); + ADD_TEST(test_memcmp); ADD_ALL_TESTS(test_bn_output, OSSL_NELEM(bn_output_tests)); return 1; }