aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_test_suite.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-05 18:58:50 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-05 18:58:50 +0400
commit448ba92d15341362bdf4701e9b07f1503458d28f (patch)
tree64ffd785da104a844c4e79b317d65d8cf42fcc67 /test/rspamd_test_suite.c
parent4f28edb3f55048024301068417be00106ebdd09a (diff)
downloadrspamd-448ba92d15341362bdf4701e9b07f1503458d28f.tar.gz
rspamd-448ba92d15341362bdf4701e9b07f1503458d28f.zip
Fixed threading for testing suite.
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r--test/rspamd_test_suite.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c
index c23f6fca2..5f9a77097 100644
--- a/test/rspamd_test_suite.c
+++ b/test/rspamd_test_suite.c
@@ -34,6 +34,11 @@ main (int argc, char **argv)
g_test_init (&argc, &argv, NULL);
rspamd_main = (struct rspamd_main *)g_malloc (sizeof (struct rspamd_main));
+
+#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30))
+ g_thread_init (NULL);
+#endif
+
memset (rspamd_main, 0, sizeof (struct rspamd_main));
rspamd_main->server_pool = memory_pool_new (memory_pool_get_size ());
rspamd_main->cfg = (struct config_file *)g_malloc (sizeof (struct config_file));