X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=test%2Fconstant_time_test.c;h=200cb376c5d306cf8789db9568131b476c331574;hb=5c5eb286afc046094cf48ecc49b10d04a1a3146c;hp=422c04ca27a43192e0ae50f03df118c49a654add;hpb=9018f3ce0f9fd57e65d8e7d43741f08797811766;p=openssl.git diff --git a/test/constant_time_test.c b/test/constant_time_test.c index 422c04ca27..200cb376c5 100644 --- a/test/constant_time_test.c +++ b/test/constant_time_test.c @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -10,7 +10,7 @@ #include #include -#include "e_os.h" +#include "internal/nelem.h" #include "internal/constant_time_locl.h" #include "testutil.h" #include "internal/numbers.h" @@ -327,11 +327,12 @@ static int test_64values(int i) return ret; } -void register_tests(void) +int setup_tests(void) { ADD_TEST(test_sizeofs); ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values)); ADD_ALL_TESTS(test_signed, OSSL_NELEM(signed_test_values)); - ADD_ALL_TESTS(test_8values, sizeof(test_values_8)); - ADD_ALL_TESTS(test_64values, sizeof(test_values_64)); + ADD_ALL_TESTS(test_8values, OSSL_NELEM(test_values_8)); + ADD_ALL_TESTS(test_64values, OSSL_NELEM(test_values_64)); + return 1; }