aboutsummaryrefslogtreecommitdiff
path: root/test/test_test.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-03-26 10:55:35 +0200
committerMatt Caswell <matt@openssl.org>2018-03-27 10:22:49 +0100
commit75a8f1eff03a1c91c22683b022e2145628962157 (patch)
treed2b4b17f23f8e1e3415a0049b71ded889aa25a3c /test/test_test.c
parent0b020b14882173918b9cc3e8e3bd85fb9ffac948 (diff)
downloadopenssl-75a8f1eff03a1c91c22683b022e2145628962157.zip
openssl-75a8f1eff03a1c91c22683b022e2145628962157.tar.gz
openssl-75a8f1eff03a1c91c22683b022e2145628962157.tar.bz2
test/test_test.c: add CRYPTO_memcmp regression test.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'test/test_test.c')
-rw-r--r--test/test_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_test.c b/test/test_test.c
index c45bf8d..76b61f8 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;
}