test: export basic_test_setup/basic_test_cleanup to extend them

(cherry picked from commit 7cec9b95a3aefb85fcf75610abc8e27e284b251d)
This commit is contained in:
Azat Khuzhin 2018-10-27 19:41:52 +03:00 committed by Azat Khuzhin
parent d76823d411
commit a9a5cf4de0
No known key found for this signature in database
GPG Key ID: B86086848EF8686D
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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;