diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 16:40:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 16:40:20 +0000 |
commit | 92abcea04fa67e69bb5951049e945356ceae4670 (patch) | |
tree | b147dbe79dcc74c729f61a9262dd638d68637bc5 /test/rspamd_mem_pool_test.c | |
parent | e6c42dc71175916c01074f5605afc5b3257fe725 (diff) | |
download | rspamd-92abcea04fa67e69bb5951049e945356ceae4670.tar.gz rspamd-92abcea04fa67e69bb5951049e945356ceae4670.zip |
[Project] Support mempool flags
Diffstat (limited to 'test/rspamd_mem_pool_test.c')
-rw-r--r-- | test/rspamd_mem_pool_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rspamd_mem_pool_test.c b/test/rspamd_mem_pool_test.c index 61b9a7a94..61b4efe3f 100644 --- a/test/rspamd_mem_pool_test.c +++ b/test/rspamd_mem_pool_test.c @@ -20,7 +20,7 @@ rspamd_mem_pool_test_func () pid_t pid; int ret; - pool = rspamd_mempool_new (sizeof (TEST_BUF), NULL); + pool = rspamd_mempool_new (sizeof (TEST_BUF), NULL, 0); tmp = rspamd_mempool_alloc (pool, sizeof (TEST_BUF)); tmp2 = rspamd_mempool_alloc (pool, sizeof (TEST_BUF) * 2); tmp3 = rspamd_mempool_alloc_shared (pool, sizeof (TEST_BUF)); @@ -32,8 +32,8 @@ rspamd_mem_pool_test_func () g_assert (strncmp (tmp, TEST_BUF, sizeof (TEST_BUF)) == 0); g_assert (strncmp (tmp2, TEST2_BUF, sizeof (TEST2_BUF)) == 0); g_assert (strncmp (tmp3, TEST_BUF, sizeof (TEST_BUF)) == 0); - + rspamd_mempool_delete (pool); rspamd_mempool_stat (&st); - + } |