From: Azat Khuzhin Date: Sat, 27 Oct 2018 16:41:52 +0000 (+0300) Subject: test: export basic_test_setup/basic_test_cleanup to extend them X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cec9b95a3aefb85fcf75610abc8e27e284b251d;p=libevent test: export basic_test_setup/basic_test_cleanup to extend them --- 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;