projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b020b1
)
test/test_test.c: add CRYPTO_memcmp regression test.
author
Andy Polyakov
<appro@openssl.org>
Mon, 26 Mar 2018 08:55:35 +0000
(10:55 +0200)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/test/test_test.c
b/test/test_test.c
index c45bf8d8f151c312accc82fd3519b1fb6fabc6e9..76b61f8188914a8eba0f6c4c3dc6cd9c2ab48dce 100644
(file)
--- 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;
}