Add a test for the info callback
[openssl.git] / test / test_test.c
index c45bf8d8f151c312accc82fd3519b1fb6fabc6e9..18b61c6d0b1005f80baafccb225c1eb151b237e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
  * Copyright (c) 2017, Oracle and/or its affiliates.  All rights reserved.
  *
  * Licensed under the OpenSSL license (the "License").  You may not use
@@ -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;
 }