X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=test%2Fgmdifftest.c;h=b0fc5c637f653d19b465055c35b3b4f7f0c618de;hb=2de64666a07cccf8477e6483de62ae31f463df64;hp=462436ff4851da6afcd4aea10debf95ab530a8f4;hpb=7635e5bccce9d865c1c006105421ca82dae064b5;p=openssl.git diff --git a/test/gmdifftest.c b/test/gmdifftest.c index 462436ff48..b0fc5c637f 100644 --- a/test/gmdifftest.c +++ b/test/gmdifftest.c @@ -1,7 +1,7 @@ /* * Copyright 2015-2017 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html @@ -9,7 +9,6 @@ #include -#include "test_main.h" #include "testutil.h" #define SECS_PER_DAY (24 * 60 * 60) @@ -56,10 +55,11 @@ static int test_gmtime(int offset) check_time(-offset * 1000L); } -void register_tests(void) +int setup_tests(void) { if (sizeof(time_t) < 8) TEST_info("Skipping; time_t is less than 64-bits"); else - ADD_ALL_TESTS(test_gmtime, 1000000); + ADD_ALL_TESTS_NOSUBTEST(test_gmtime, 1000000); + return 1; }