From: Andy Polyakov Date: Mon, 26 Mar 2018 08:55:35 +0000 (+0200) Subject: test/test_test.c: add CRYPTO_memcmp regression test. X-Git-Tag: OpenSSL_1_1_1-pre4~51 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75a8f1eff03a1c91c22683b022e2145628962157;p=oweals%2Fopenssl.git test/test_test.c: add CRYPTO_memcmp regression test. Reviewed-by: Matt Caswell --- 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; }