From a9a5cf4de04fe325eb9297f09e8ce23a1af9c514 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 27 Oct 2018 19:41:52 +0300 Subject: [PATCH] test: export basic_test_setup/basic_test_cleanup to extend them (cherry picked from commit 7cec9b95a3aefb85fcf75610abc8e27e284b251d) --- test/regress.h | 3 +++ test/regress_main.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/regress.h b/test/regress.h index de1aed30..3976a626 100644 --- a/test/regress.h +++ b/test/regress.h @@ -137,6 +137,9 @@ SSL_CTX *get_ssl_ctx(void); void init_ssl(void); #endif +void * basic_test_setup(const struct testcase_t *testcase); +int basic_test_cleanup(const struct testcase_t *testcase, void *ptr); + #ifdef __cplusplus } #endif diff --git a/test/regress_main.c b/test/regress_main.c index 44e29111..094ff23b 100644 --- a/test/regress_main.c +++ b/test/regress_main.c @@ -186,7 +186,7 @@ ignore_log_cb(int s, const char *msg) { } -static void * +void * basic_test_setup(const struct testcase_t *testcase) { struct event_base *base = NULL; @@ -262,7 +262,7 @@ basic_test_setup(const struct testcase_t *testcase) return data; } -static int +int basic_test_cleanup(const struct testcase_t *testcase, void *ptr) { struct basic_test_data *data = ptr;