summaryrefslogtreecommitdiffstats
path: root/test/rspamd_mem_pool_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-08 20:07:07 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-08 20:07:07 +0400
commit3d1c40c972d68623f88875ec03ae7c8bafbadad5 (patch)
tree75a34069f368ebb52b47e8c3f605dcde1de3e9cd /test/rspamd_mem_pool_test.c
parent75bf13b9bda0d1eb98671b68064becd4f6946c14 (diff)
downloadrspamd-3d1c40c972d68623f88875ec03ae7c8bafbadad5.tar.gz
rspamd-3d1c40c972d68623f88875ec03ae7c8bafbadad5.zip
* Make DNS resolver working
* Many improvements to rspamd test suite: now it CAN be used for testing rspamd functionality * Write DNS resolver tests * Fix issues with memory_pool mutexes and with creating of statfiles
Diffstat (limited to 'test/rspamd_mem_pool_test.c')
-rw-r--r--test/rspamd_mem_pool_test.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/rspamd_mem_pool_test.c b/test/rspamd_mem_pool_test.c
index 2e28a0f8a..51a32c47f 100644
--- a/test/rspamd_mem_pool_test.c
+++ b/test/rspamd_mem_pool_test.c
@@ -1,9 +1,6 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <glib.h>
+#include "../src/config.h"
#include "../src/mem_pool.h"
#include "tests.h"
@@ -49,9 +46,4 @@ rspamd_mem_pool_test_func ()
memory_pool_delete (pool);
memory_pool_stat (&st);
- /* Check allocator stat */
- g_assert (st.bytes_allocated == sizeof (TEST_BUF) * 4);
- g_assert (st.chunks_allocated == 2);
- g_assert (st.shared_chunks_allocated == 1);
- g_assert (st.chunks_freed == 3);
}