mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 08:17:42 -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);
|
void init_ssl(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void * basic_test_setup(const struct testcase_t *testcase);
|
||||||
|
int basic_test_cleanup(const struct testcase_t *testcase, void *ptr);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -186,7 +186,7 @@ ignore_log_cb(int s, const char *msg)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
void *
|
||||||
basic_test_setup(const struct testcase_t *testcase)
|
basic_test_setup(const struct testcase_t *testcase)
|
||||||
{
|
{
|
||||||
struct event_base *base = NULL;
|
struct event_base *base = NULL;
|
||||||
@ -262,7 +262,7 @@ basic_test_setup(const struct testcase_t *testcase)
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
int
|
||||||
basic_test_cleanup(const struct testcase_t *testcase, void *ptr)
|
basic_test_cleanup(const struct testcase_t *testcase, void *ptr)
|
||||||
{
|
{
|
||||||
struct basic_test_data *data = ptr;
|
struct basic_test_data *data = ptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user