aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_test_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r--test/rspamd_test_suite.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c
index 728acd8a2..3cbb81460 100644
--- a/test/rspamd_test_suite.c
+++ b/test/rspamd_test_suite.c
@@ -3,9 +3,10 @@
#include "libstat/stat_api.h"
#include "lua/lua_common.h"
#include "tests.h"
+#include "contrib/libev/ev.h"
struct rspamd_main *rspamd_main = NULL;
-struct ev_loop *base = NULL;
+struct ev_loop *event_loop = NULL;
worker_t *workers[] = { NULL };
gchar *lua_test = NULL;
@@ -54,8 +55,8 @@ main (int argc, char **argv)
}
rspamd_lua_set_path ((lua_State *)cfg->lua_state, NULL, NULL);
- base = event_init ();
- rspamd_stat_init (cfg, base);
+ event_loop = ev_default_loop (EVFLAG_SIGNALFD|EVBACKEND_ALL);
+ rspamd_stat_init (cfg, event_loop);
rspamd_url_init (NULL);
if (g_test_verbose ()) {