aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_test_suite.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-21 12:39:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-21 12:39:30 +0000
commitf75769f242817029e5d8bfa3d617d02aece1729a (patch)
tree69439a3a50adfe84c64b994fea3eb21ed561e04c /test/rspamd_test_suite.c
parent464e03890c20488ec6bff075ddf28772cd15f422 (diff)
downloadrspamd-f75769f242817029e5d8bfa3d617d02aece1729a.tar.gz
rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.zip
[Minor] Fix tests
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r--test/rspamd_test_suite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c
index 10a5d941b..6ca8d6465 100644
--- a/test/rspamd_test_suite.c
+++ b/test/rspamd_test_suite.c
@@ -1,6 +1,7 @@
#include "config.h"
#include "rspamd.h"
#include "libstat/stat_api.h"
+#include "lua/lua_common.h"
#include "tests.h"
struct rspamd_main *rspamd_main = NULL;
@@ -31,6 +32,7 @@ main (int argc, char **argv)
memset (rspamd_main, 0, sizeof (struct rspamd_main));
rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL);
cfg = rspamd_config_new (RSPAMD_CONFIG_INIT_DEFAULT);
+ cfg->libs_ctx = rspamd_init_libs ();
rspamd_main->cfg = cfg;
cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL);
cfg->log_type = RSPAMD_LOG_CONSOLE;
@@ -51,8 +53,7 @@ main (int argc, char **argv)
exit (1);
}
- cfg->libs_ctx = rspamd_init_libs ();
-
+ rspamd_lua_set_path ((lua_State *)cfg->lua_state, NULL, NULL);
base = event_init ();
rspamd_stat_init (cfg, base);
rspamd_url_init (NULL);