diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-17 22:06:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-17 22:06:14 +0100 |
commit | 92ba37c087674acafedb042bdb85433871dd4f44 (patch) | |
tree | 6ec7c77f2efcc0439a9f54e647c10bd801ab2101 /test/rspamd_test_suite.c | |
parent | 8eab240ec7a152df5837547c73ce717351e07ba1 (diff) | |
download | rspamd-92ba37c087674acafedb042bdb85433871dd4f44.tar.gz rspamd-92ba37c087674acafedb042bdb85433871dd4f44.zip |
Fix tests build.
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r-- | test/rspamd_test_suite.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index 0da1d3839..004b1eb92 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -19,7 +19,8 @@ main (int argc, char **argv) rspamd_main->server_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); rspamd_main->cfg = (struct rspamd_config *)g_malloc (sizeof (struct rspamd_config)); cfg = rspamd_main->cfg; - bzero (cfg, sizeof (struct rspamd_config)); + memset (cfg, 0, sizeof (struct rspamd_config)); + rspamd_init_cfg (cfg, FALSE); cfg->cfg_pool = rspamd_mempool_new (rspamd_mempool_suggest_size ()); cfg->log_type = RSPAMD_LOG_CONSOLE; cfg->log_level = G_LOG_LEVEL_INFO; @@ -29,12 +30,7 @@ main (int argc, char **argv) g_test_init (&argc, &argv, NULL); -#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30)) - g_thread_init (NULL); -#endif - - g_mime_init (0); - rspamd_regexp_library_init (); + rspamd_init_libs (); base = event_init (); |