summaryrefslogtreecommitdiffstats
path: root/test/cipherbytes_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cipherbytes_test.c')
-rw-r--r--test/cipherbytes_test.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/cipherbytes_test.c b/test/cipherbytes_test.c
index bc3051ed34..6601f7b5d6 100644
--- a/test/cipherbytes_test.c
+++ b/test/cipherbytes_test.c
@@ -129,22 +129,21 @@ err:
return ret;
}
-int test_main(int argc, char **argv)
+int setup_tests(void)
{
- int ret;
-
if (!TEST_ptr(ctx = SSL_CTX_new(TLS_server_method()))
|| !TEST_ptr(s = SSL_new(ctx)))
- return EXIT_FAILURE;
+ return 0;
ADD_TEST(test_empty);
ADD_TEST(test_unsupported);
ADD_TEST(test_v2);
ADD_TEST(test_v3);
- ret = run_tests(argv[0]);
+ return 1;
+}
+void cleanup_tests(void)
+{
SSL_free(s);
SSL_CTX_free(ctx);
-
- return ret;
}