]> granicus.if.org Git - libevent/commitdiff
test: export basic_test_setup/basic_test_cleanup to extend them
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 27 Oct 2018 16:41:52 +0000 (19:41 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sat, 27 Oct 2018 22:21:35 +0000 (01:21 +0300)
test/regress.h
test/regress_main.c

index de1aed30895b1282e1a19ff5bc04f2d535d5b180..3976a626c89bd6cae65114c1ade0c812903a05a3 100644 (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
index 44e291119a3db11e6834dccb930c80869fa83199..094ff23ba2a227cdf9610ccc28cd3795475e2596 100644 (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;