mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 15:25:09 -04:00
test: export basic_test_setup/basic_test_cleanup to extend them
(cherry picked from commit 7cec9b95a3aefb85fcf75610abc8e27e284b251d)
This commit is contained in:
parent
d76823d411
commit
a9a5cf4de0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user