test/test_test.c: add CRYPTO_memcmp regression test.
authorAndy Polyakov <appro@openssl.org>
Mon, 26 Mar 2018 08:55:35 +0000 (10:55 +0200)
committerMatt Caswell <matt@openssl.org>
Tue, 27 Mar 2018 09:22:49 +0000 (10:22 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
test/test_test.c

index c45bf8d..76b61f8 100644 (file)
@@ -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;
 }