aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_statfile_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c
index 2ada1836e..7a36a848d 100644
--- a/test/rspamd_statfile_test.c
+++ b/test/rspamd_statfile_test.c
@@ -10,12 +10,14 @@ void
rspamd_statfile_test_func ()
{
statfile_pool_t *pool;
+ memory_pool_t *p;
stat_file_t *st;
uint32_t random_hashes[HASHES_NUM], i, v;
time_t now;
+ p = memory_pool_new (memory_pool_get_size ());
umask (S_IWGRP | S_IWOTH);
- pool = statfile_pool_new (10 * 1024 * 1024);
+ pool = statfile_pool_new (p, 10 * 1024 * 1024);
now = time (NULL);
/* Fill random array */